[llvm-branch-commits] [lld] r322563 - Merging r321983:

Hans Wennborg via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jan 16 07:40:24 PST 2018


Author: hans
Date: Tue Jan 16 07:40:23 2018
New Revision: 322563

URL: http://llvm.org/viewvc/llvm-project?rev=322563&view=rev
Log:
Merging r321983:
------------------------------------------------------------------------
r321983 | smeenai | 2018-01-07 21:58:36 -0800 (Sun, 07 Jan 2018) | 10 lines

[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
------------------------------------------------------------------------

Modified:
    lld/branches/release_60/   (props changed)
    lld/branches/release_60/COFF/Driver.cpp

Propchange: lld/branches/release_60/
------------------------------------------------------------------------------
    svn:mergeinfo = /lld/trunk:321983

Modified: lld/branches/release_60/COFF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/branches/release_60/COFF/Driver.cpp?rev=322563&r1=322562&r2=322563&view=diff
==============================================================================
--- lld/branches/release_60/COFF/Driver.cpp (original)
+++ lld/branches/release_60/COFF/Driver.cpp Tue Jan 16 07:40:23 2018
@@ -57,6 +57,7 @@ bool link(ArrayRef<const char *> Args, b
   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;




More information about the llvm-branch-commits mailing list