projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c8818a
)
Do not print out ARGV0 in white because it's unreadable on white background.
author
Rui Ueyama
<ruiu@google.com>
Fri, 25 Nov 2016 20:37:16 +0000
(20:37 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Fri, 25 Nov 2016 20:37:16 +0000
(20:37 +0000)
llvm-svn: 287950
lld/ELF/Error.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Error.cpp
b/lld/ELF/Error.cpp
index
2b5cfe9
..
1a66048
100644
(file)
--- a/
lld/ELF/Error.cpp
+++ b/
lld/ELF/Error.cpp
@@
-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;
}
}