summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-08-24 20:32:58 +0000
committerRui Ueyama <ruiu@google.com>2017-08-24 20:32:58 +0000
commit8bee41e423ae67da0c26f593b3e946ddc136db99 (patch)
treec42593b159f6f15af345ebdfbf46d9981cc24594
parent4cb2e827743e1faadd8d28a1adee4e373a7b6b8f (diff)
downloadbcm5719-llvm-8bee41e423ae67da0c26f593b3e946ddc136db99.tar.gz
bcm5719-llvm-8bee41e423ae67da0c26f593b3e946ddc136db99.zip
Simplify. NFC.
llvm-svn: 311700
-rw-r--r--lld/COFF/Driver.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp
index 0c2c0abdf90..7a965fa87f2 100644
--- a/lld/COFF/Driver.cpp
+++ b/lld/COFF/Driver.cpp
@@ -57,8 +57,7 @@ bool link(ArrayRef<const char *> Args, raw_ostream &Diag) {
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;
OpenPOWER on IntegriCloud