diff options
author | Rui Ueyama <ruiu@google.com> | 2016-01-29 01:54:52 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-01-29 01:54:52 +0000 |
commit | 1940424632328c9921abf328ede29cbc28f9680c (patch) | |
tree | c3c01a5d3874ef36fd4ad936dca396dfe9e99f6f /lld/ELF/LinkerScript.cpp | |
parent | 572a6f74a74a1dd668be4a2d00b29a2d50321d02 (diff) | |
download | bcm5719-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.cpp | 2 |
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 { |