llvm-lto: trivial spelling changes to distinguish custom diagnostic handler and
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Tue, 10 Nov 2015 18:52:48 +0000 (18:52 +0000)
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Tue, 10 Nov 2015 18:52:48 +0000 (18:52 +0000)
default diagnostic handler.

Differential Revision: http://reviews.llvm.org/D14520

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252633 91177308-0d34-0410-b5e6-96231b3b80d8

test/LTO/X86/diagnostic-handler-remarks.ll
tools/llvm-lto/llvm-lto.cpp

index 4da9101117ecc7bb3a3ba291ef2a4dc972929b98..690a9014a7e12d48f88f880439165dc8805fde04 100644 (file)
@@ -9,7 +9,7 @@
 
 ; RUN: llvm-lto -pass-remarks=inline -use-diagnostic-handler \
 ; RUN:         -exported-symbol _main -o %t.o %t.bc 2>&1 | \
-; RUN:     FileCheck %s -allow-empty -check-prefix=REMARKS
+; RUN:     FileCheck %s -allow-empty -check-prefix=REMARKS_DH
 ; RUN: llvm-nm %t.o | FileCheck %s -check-prefix NM
 
 ; Confirm that -pass-remarks are not printed by default.
@@ -24,7 +24,9 @@
 ; RUN: llvm-nm %t.o | FileCheck %s -check-prefix NM
 
 ; REMARKS: remark:
+; REMARKS_DH: llvm-lto: remark:
 ; CHECK-NOT: remark:
+; CHECK-NOT: llvm-lto:
 ; NM-NOT: foo
 ; NM: main
 
index cdfe97f4907b2a993ee85f8a3be3a81649a6e4d8..04050c548704dbc8644452db068301a824d72835 100644 (file)
@@ -101,6 +101,7 @@ struct ModuleInfo {
 
 static void handleDiagnostics(lto_codegen_diagnostic_severity_t Severity,
                               const char *Msg, void *) {
+  errs() << "llvm-lto: ";
   switch (Severity) {
   case LTO_DS_NOTE:
     errs() << "note: ";