Index: lld/Common/ErrorHandler.cpp =================================================================== --- lld/Common/ErrorHandler.cpp +++ lld/Common/ErrorHandler.cpp @@ -74,7 +74,6 @@ } void ErrorHandler::print(StringRef S, raw_ostream::Colors C) { - *ErrorOS << LogName << ": "; if (ColorDiagnostics) { ErrorOS->changeColor(C, true); *ErrorOS << S; Index: lld/test/ELF/basic.s =================================================================== --- lld/test/ELF/basic.s +++ lld/test/ELF/basic.s @@ -224,7 +224,7 @@ # RUN: not ld.lld -o %t2 2>&1 | \ # RUN: FileCheck --check-prefix=NO_INPUT %s -# NO_INPUT: ld.lld{{.*}}: no input files +# NO_INPUT: error: no input files # RUN: not ld.lld %t.no.such.file -o %t2 2>&1 | \ # RUN: FileCheck --check-prefix=CANNOT_OPEN %s Index: lld/test/ELF/color-diagnostics.test =================================================================== --- lld/test/ELF/color-diagnostics.test +++ lld/test/ELF/color-diagnostics.test @@ -6,8 +6,8 @@ # RUN: not ld.lld -xyz -color-diagnostics=always /nosuchfile 2>&1 \ # RUN: | FileCheck -check-prefix=COLOR %s -# COLOR: {{ld.lld: .\[0;1;31merror: .\[0munknown argument: -xyz}} -# COLOR: {{ld.lld: .\[0;1;31merror: .\[0mcannot open /nosuchfile}} +# COLOR: {{.\[0;1;31merror: .\[0munknown argument: -xyz}} +# COLOR: {{.\[0;1;31merror: .\[0mcannot open /nosuchfile}} # RUN: not ld.lld /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s # RUN: not ld.lld -color-diagnostics=never /nosuchfile 2>&1 \ @@ -15,4 +15,4 @@ # RUN: not ld.lld -color-diagnostics=always -no-color-diagnostics \ # RUN: /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s -# NOCOLOR: ld.lld: error: cannot open /nosuchfile +# NOCOLOR: error: cannot open /nosuchfile