[llvm-commits] CVS: llvm/lib/Linker/LinkArchives.cpp

Reid Spencer reid at x10sys.com
Fri Jul 7 15:57:05 CDT 2006



Changes in directory llvm/lib/Linker:

LinkArchives.cpp updated: 1.49 -> 1.50
---
Log message:

Finish removal of EH usage from the Archive library. The REQUIRES_EH flag
in lib/Bytecode/Archive/Makefile is now removed. One small step closer to
a smaller LLVM.


---
Diffs of the changes:  (+3 -1)

 LinkArchives.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)


Index: llvm/lib/Linker/LinkArchives.cpp
diff -u llvm/lib/Linker/LinkArchives.cpp:1.49 llvm/lib/Linker/LinkArchives.cpp:1.50
--- llvm/lib/Linker/LinkArchives.cpp:1.49	Thu Apr 21 17:47:36 2005
+++ llvm/lib/Linker/LinkArchives.cpp	Fri Jul  7 15:56:50 2006
@@ -137,7 +137,9 @@
 
     // Find the modules we need to link into the target module
     std::set<ModuleProvider*> Modules;
-    arch->findModulesDefiningSymbols(UndefinedSymbols, Modules);
+    if (!arch->findModulesDefiningSymbols(UndefinedSymbols, Modules, &ErrMsg))
+      return error("Cannot find symbols in '" + Filename.toString() + 
+                   "': " + ErrMsg);
 
     // If we didn't find any more modules to link this time, we are done
     // searching this archive.






More information about the llvm-commits mailing list