[lld] r287950 - Do not print out ARGV0 in white because it's unreadable on white background.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 25 12:37:16 PST 2016


Author: ruiu
Date: Fri Nov 25 14:37:16 2016
New Revision: 287950

URL: http://llvm.org/viewvc/llvm-project?rev=287950&view=rev
Log:
Do not print out ARGV0 in white because it's unreadable on white background.

Modified:
    lld/trunk/ELF/Error.cpp

Modified: lld/trunk/ELF/Error.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Error.cpp?rev=287950&r1=287949&r2=287950&view=diff
==============================================================================
--- lld/trunk/ELF/Error.cpp (original)
+++ lld/trunk/ELF/Error.cpp Fri Nov 25 14:37:16 2016
@@ -43,14 +43,13 @@ static bool useColor() {
 }
 
 static void print(StringRef S, raw_ostream::Colors C) {
+  *ErrorOS << Argv0 + ": ";
   if (useColor()) {
-    ErrorOS->changeColor(raw_ostream::WHITE, /*Bold=*/true);
-    *ErrorOS << Argv0 + ": ";
     ErrorOS->changeColor(C, true);
     *ErrorOS << S;
     ErrorOS->resetColor();
   } else {
-    *ErrorOS << Argv0 + ": " << S;
+    *ErrorOS << S;
   }
 }
 




More information about the llvm-commits mailing list