[llvm] r333236 - [Debugify] Avoid printing unnecessary square braces, NFC
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Thu May 24 16:00:22 PDT 2018
Author: vedantk
Date: Thu May 24 16:00:22 2018
New Revision: 333236
URL: http://llvm.org/viewvc/llvm-project?rev=333236&view=rev
Log:
[Debugify] Avoid printing unnecessary square braces, NFC
Modified:
llvm/trunk/test/DebugInfo/debugify.ll
llvm/trunk/test/Transforms/Mem2Reg/PromoteMemToRegister.ll
llvm/trunk/tools/opt/Debugify.cpp
Modified: llvm/trunk/test/DebugInfo/debugify.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/debugify.ll?rev=333236&r1=333235&r2=333236&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/debugify.ll (original)
+++ llvm/trunk/test/DebugInfo/debugify.ll Thu May 24 16:00:22 2018
@@ -84,6 +84,6 @@ define weak_odr zeroext i1 @baz() {
; CHECK-FAIL: WARNING: Missing line 3
; CHECK-FAIL: WARNING: Missing line 4
; CHECK-FAIL: ERROR: Missing variable 1
-; CHECK-FAIL: CheckModuleDebugify [{{.*}}]: FAIL
+; CHECK-FAIL: CheckModuleDebugify: FAIL
-; PASS: CheckModuleDebugify [{{.*}}]: PASS
+; PASS: CheckModuleDebugify: PASS
Modified: llvm/trunk/test/Transforms/Mem2Reg/PromoteMemToRegister.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Mem2Reg/PromoteMemToRegister.ll?rev=333236&r1=333235&r2=333236&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Mem2Reg/PromoteMemToRegister.ll (original)
+++ llvm/trunk/test/Transforms/Mem2Reg/PromoteMemToRegister.ll Thu May 24 16:00:22 2018
@@ -2,7 +2,7 @@
; RUN: opt < %s -debugify -mem2reg -check-debugify -S 2>&1 | FileCheck %s
; CHECK-NOT: alloca
-; CHECK: CheckModuleDebugify [{{.*}}]: PASS
+; CHECK: CheckModuleDebugify: PASS
define double @testfunc(i32 %i, double %j) {
%I = alloca i32 ; <i32*> [#uses=4]
Modified: llvm/trunk/tools/opt/Debugify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/Debugify.cpp?rev=333236&r1=333235&r2=333236&view=diff
==============================================================================
--- llvm/trunk/tools/opt/Debugify.cpp (original)
+++ llvm/trunk/tools/opt/Debugify.cpp Thu May 24 16:00:22 2018
@@ -191,8 +191,10 @@ bool checkDebugifyMetadata(Module &M,
errs() << "ERROR: Missing variable " << Idx + 1 << "\n";
HasErrors |= MissingVars.count() > 0;
- errs() << Banner << " [" << NameOfWrappedPass << "]: "
- << (HasErrors ? "FAIL" : "PASS") << '\n';
+ errs() << Banner;
+ if (!NameOfWrappedPass.empty())
+ errs() << " [" << NameOfWrappedPass << "]";
+ errs() << ": " << (HasErrors ? "FAIL" : "PASS") << '\n';
if (HasErrors) {
errs() << "Module IR Dump\n";
M.print(errs(), nullptr, false);
More information about the llvm-commits
mailing list