[PATCH] D14520: llvm-lto: trivial spelling changes to distinguish custom diagnostic handler and default diagnostic handler

Yunzhong Gao via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 10 10:55:30 PST 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL252633: llvm-lto: trivial spelling changes to distinguish custom diagnostic handler and (authored by ygao).

Changed prior to commit:
  http://reviews.llvm.org/D14520?vs=39763&id=39830#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D14520

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

Index: llvm/trunk/tools/llvm-lto/llvm-lto.cpp
===================================================================
--- llvm/trunk/tools/llvm-lto/llvm-lto.cpp
+++ llvm/trunk/tools/llvm-lto/llvm-lto.cpp
@@ -101,6 +101,7 @@
 
 static void handleDiagnostics(lto_codegen_diagnostic_severity_t Severity,
                               const char *Msg, void *) {
+  errs() << "llvm-lto: ";
   switch (Severity) {
   case LTO_DS_NOTE:
     errs() << "note: ";
Index: llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll
===================================================================
--- llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll
+++ llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll
@@ -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
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14520.39830.patch
Type: text/x-patch
Size: 1277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151110/bb4d32b2/attachment.bin>


More information about the llvm-commits mailing list