summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-01-29 01:54:52 +0000
committerRui Ueyama <ruiu@google.com>2016-01-29 01:54:52 +0000
commit1940424632328c9921abf328ede29cbc28f9680c (patch)
treec3c01a5d3874ef36fd4ad936dca396dfe9e99f6f /lld/ELF/LinkerScript.cpp
parent572a6f74a74a1dd668be4a2d00b29a2d50321d02 (diff)
downloadbcm5719-llvm-1940424632328c9921abf328ede29cbc28f9680c.tar.gz
bcm5719-llvm-1940424632328c9921abf328ede29cbc28f9680c.zip
ELF: Report multiple errors from the driver.
This patch let the driver keep going until it parses all command line options. http://reviews.llvm.org/D16645 llvm-svn: 259143
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r--lld/ELF/LinkerScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index d9f98e9bbff..cbf422d25b4 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -178,7 +178,7 @@ void LinkerScript::addFile(StringRef S) {
else
Driver->addFile(Saver.save(Config->Sysroot + "/" + S.substr(1)));
} else if (S.startswith("-l")) {
- Driver->addFile(searchLibrary(S.substr(2)));
+ Driver->addLibrary(S.substr(2));
} else if (sys::fs::exists(S)) {
Driver->addFile(S);
} else {
OpenPOWER on IntegriCloud