summaryrefslogtreecommitdiff
path: root/tools/llvm-nm
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-07-07 20:56:50 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-07-07 20:56:50 +0000
commit8d8a7ffe580c622e7e43f1426bca64e517de0d06 (patch)
treec60daf1d048ab2afd3e3b491113c4e7697ee1f4a /tools/llvm-nm
parent3039b99697639479bf7ce1a447cb0b9a580a7606 (diff)
downloadllvm-8d8a7ffe580c622e7e43f1426bca64e517de0d06.tar.gz
llvm-8d8a7ffe580c622e7e43f1426bca64e517de0d06.tar.bz2
llvm-8d8a7ffe580c622e7e43f1426bca64e517de0d06.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29067 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-nm')
-rw-r--r--tools/llvm-nm/llvm-nm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp
index dae8f95f85..420c9eac2f 100644
--- a/tools/llvm-nm/llvm-nm.cpp
+++ b/tools/llvm-nm/llvm-nm.cpp
@@ -134,7 +134,8 @@ void DumpSymbolNamesFromFile (std::string &Filename) {
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;