aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Linker
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2008-02-27 17:20:32 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2008-02-27 17:20:32 +0000
commit06c4268c551e6d9bed313661a93ca410906d903c (patch)
treecc73e7a4ce9c5bca3850d5123076957e3e217f38 /lib/Linker
parent01b3246f1ea2b41da19465decc29d78e6e98f1ff (diff)
downloadexternal_llvm-06c4268c551e6d9bed313661a93ca410906d903c.zip
external_llvm-06c4268c551e6d9bed313661a93ca410906d903c.tar.gz
external_llvm-06c4268c551e6d9bed313661a93ca410906d903c.tar.bz2
Emit an error when a library is not found. It is the GNU ld behavior and it is expected by the configure scripts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
-rw-r--r--lib/Linker/LinkItems.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkItems.cpp b/lib/Linker/LinkItems.cpp
index 4d61395..7c888aa 100644
--- a/lib/Linker/LinkItems.cpp
+++ b/lib/Linker/LinkItems.cpp
@@ -74,7 +74,7 @@ bool Linker::LinkInLibrary(const std::string& Lib, bool& is_native) {
// Determine where this library lives.
sys::Path Pathname = FindLib(Lib);
if (Pathname.isEmpty())
- return warning("Cannot find library '" + Lib + "'");
+ return error("Cannot find library '" + Lib + "'");
// If its an archive, try to link it in
std::string Magic;