summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit14241b29b2d1607958300d61061406524c07823e (patch)
treed740e9a1df755855d906b1f2ca3316658437185c /llvm/lib/Linker
parent7143697def70611adcaef9b68dad6751a750d693 (diff)
downloadbcm5719-llvm-14241b29b2d1607958300d61061406524c07823e.tar.gz
bcm5719-llvm-14241b29b2d1607958300d61061406524c07823e.zip
Emit an error when a library is not found. It is the GNU ld behavior and it is expected by the configure scripts.
llvm-svn: 47674
Diffstat (limited to 'llvm/lib/Linker')
-rw-r--r--llvm/lib/Linker/LinkItems.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkItems.cpp b/llvm/lib/Linker/LinkItems.cpp
index 4d613950511..7c888aa498a 100644
--- a/llvm/lib/Linker/LinkItems.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud