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
This commit is contained in:
Rui Ueyama
2016-01-29 01:54:52 +00:00
parent 572a6f74a7
commit 1940424632
7 changed files with 59 additions and 28 deletions

View File

@@ -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 {