[lld] r311700 - Simplify. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 24 13:32:58 PDT 2017
Author: ruiu
Date: Thu Aug 24 13:32:58 2017
New Revision: 311700
URL: http://llvm.org/viewvc/llvm-project?rev=311700&view=rev
Log:
Simplify. NFC.
Modified:
lld/trunk/COFF/Driver.cpp
Modified: lld/trunk/COFF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Driver.cpp?rev=311700&r1=311699&r2=311700&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Thu Aug 24 13:32:58 2017
@@ -57,8 +57,7 @@ bool link(ArrayRef<const char *> Args, r
ErrorOS = &Diag;
Config = make<Configuration>();
Config->Argv = {Args.begin(), Args.end()};
- Config->ColorDiagnostics =
- (ErrorOS == &llvm::errs() && Process::StandardErrHasColors());
+ Config->ColorDiagnostics = ErrorOS->has_colors();
Driver = make<LinkerDriver>();
Driver->link(Args);
return !ErrorCount;
More information about the llvm-commits
mailing list