diff options
| author | Shoaib Meenai <smeenai@fb.com> | 2018-01-08 05:58:36 +0000 |
|---|---|---|
| committer | Shoaib Meenai <smeenai@fb.com> | 2018-01-08 05:58:36 +0000 |
| commit | fd3e4b0ea12dab82c6584106e7efb4872ca406f9 (patch) | |
| tree | 67341582579f4b07ce83bc5d872608803bee8b2c | |
| parent | 3a15fb591e3c65699214911e815bdfab11ac443c (diff) | |
| download | bcm5719-llvm-fd3e4b0ea12dab82c6584106e7efb4872ca406f9.tar.gz bcm5719-llvm-fd3e4b0ea12dab82c6584106e7efb4872ca406f9.zip | |
[COFF] Initalize ErrorHandler with CanExitEarly value
Previously, the COFF driver would call exit(1) from the
ErrorHandler in the case of a link error, even if
CanExitEarly=false was specified. Now it initializes
the ErrorHandler in the same way that the ELF driver does.
Patch by Andrew Kelley.
Differential Revision: https://reviews.llvm.org/D41803
llvm-svn: 321983
| -rw-r--r-- | lld/COFF/Driver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index 1aaec355c7a..0f3d8fb0b4e 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -57,6 +57,7 @@ bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) { errorHandler().ErrorLimitExceededMsg = "too many errors emitted, stopping now" " (use /ERRORLIMIT:0 to see all errors)"; + errorHandler().ExitEarly = CanExitEarly; Config = make<Configuration>(); Config->Argv = {Args.begin(), Args.end()}; Config->CanExitEarly = CanExitEarly; |

