aboutsummaryrefslogtreecommitdiff
path: root/lib/Linker/LinkArchives.cpp
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 /lib/Linker/LinkArchives.cpp
parent3039b99697639479bf7ce1a447cb0b9a580a7606 (diff)
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 'lib/Linker/LinkArchives.cpp')
-rw-r--r--lib/Linker/LinkArchives.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Linker/LinkArchives.cpp b/lib/Linker/LinkArchives.cpp
index 5165bad199..e115b93ad2 100644
--- a/lib/Linker/LinkArchives.cpp
+++ b/lib/Linker/LinkArchives.cpp
@@ -137,7 +137,9 @@ Linker::LinkInArchive(const sys::Path &Filename) {
// 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.