[llvm-commits] CVS: llvm/tools/llvm-nm/llvm-nm.cpp

Reid Spencer reid at x10sys.com
Fri Jul 7 13:57:05 PDT 2006



Changes in directory llvm/tools/llvm-nm:

llvm-nm.cpp updated: 1.26 -> 1.27
---
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:  (+2 -1)

 llvm-nm.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/tools/llvm-nm/llvm-nm.cpp
diff -u llvm/tools/llvm-nm/llvm-nm.cpp:1.26 llvm/tools/llvm-nm/llvm-nm.cpp:1.27
--- llvm/tools/llvm-nm/llvm-nm.cpp:1.26	Wed May 24 12:04:04 2006
+++ llvm/tools/llvm-nm/llvm-nm.cpp	Fri Jul  7 15:56:50 2006
@@ -134,7 +134,8 @@
       return;
     }
   } else if (aPath.isArchive()) {
-    Archive* archive = Archive::OpenAndLoad(sys::Path(Filename));
+    std::string ErrMsg;
+    Archive* archive = Archive::OpenAndLoad(sys::Path(Filename),&ErrorMessage);
     if (!archive)
       std::cerr << ToolName << ": " << Filename << ": " << ErrorMessage << "\n";
     std::vector<Module *> Modules;






More information about the llvm-commits mailing list