diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-08-24 20:32:58 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-08-24 20:32:58 +0000 |
| commit | 8bee41e423ae67da0c26f593b3e946ddc136db99 (patch) | |
| tree | c42593b159f6f15af345ebdfbf46d9981cc24594 | |
| parent | 4cb2e827743e1faadd8d28a1adee4e373a7b6b8f (diff) | |
| download | bcm5719-llvm-8bee41e423ae67da0c26f593b3e946ddc136db99.tar.gz bcm5719-llvm-8bee41e423ae67da0c26f593b3e946ddc136db99.zip | |
Simplify. NFC.
llvm-svn: 311700
| -rw-r--r-- | lld/COFF/Driver.cpp | 3 |
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; |

