forked from OSchip/llvm-project
[Debugify] Avoid printing unnecessary square braces, NFC
llvm-svn: 333236
This commit is contained in:
parent
40399a213d
commit
b70e35686b
|
@ -84,6 +84,6 @@ define weak_odr zeroext i1 @baz() {
|
||||||
; CHECK-FAIL: WARNING: Missing line 3
|
; CHECK-FAIL: WARNING: Missing line 3
|
||||||
; CHECK-FAIL: WARNING: Missing line 4
|
; CHECK-FAIL: WARNING: Missing line 4
|
||||||
; CHECK-FAIL: ERROR: Missing variable 1
|
; CHECK-FAIL: ERROR: Missing variable 1
|
||||||
; CHECK-FAIL: CheckModuleDebugify [{{.*}}]: FAIL
|
; CHECK-FAIL: CheckModuleDebugify: FAIL
|
||||||
|
|
||||||
; PASS: CheckModuleDebugify [{{.*}}]: PASS
|
; PASS: CheckModuleDebugify: PASS
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
; RUN: opt < %s -debugify -mem2reg -check-debugify -S 2>&1 | FileCheck %s
|
; RUN: opt < %s -debugify -mem2reg -check-debugify -S 2>&1 | FileCheck %s
|
||||||
|
|
||||||
; CHECK-NOT: alloca
|
; CHECK-NOT: alloca
|
||||||
; CHECK: CheckModuleDebugify [{{.*}}]: PASS
|
; CHECK: CheckModuleDebugify: PASS
|
||||||
|
|
||||||
define double @testfunc(i32 %i, double %j) {
|
define double @testfunc(i32 %i, double %j) {
|
||||||
%I = alloca i32 ; <i32*> [#uses=4]
|
%I = alloca i32 ; <i32*> [#uses=4]
|
||||||
|
|
|
@ -191,8 +191,10 @@ bool checkDebugifyMetadata(Module &M,
|
||||||
errs() << "ERROR: Missing variable " << Idx + 1 << "\n";
|
errs() << "ERROR: Missing variable " << Idx + 1 << "\n";
|
||||||
HasErrors |= MissingVars.count() > 0;
|
HasErrors |= MissingVars.count() > 0;
|
||||||
|
|
||||||
errs() << Banner << " [" << NameOfWrappedPass << "]: "
|
errs() << Banner;
|
||||||
<< (HasErrors ? "FAIL" : "PASS") << '\n';
|
if (!NameOfWrappedPass.empty())
|
||||||
|
errs() << " [" << NameOfWrappedPass << "]";
|
||||||
|
errs() << ": " << (HasErrors ? "FAIL" : "PASS") << '\n';
|
||||||
if (HasErrors) {
|
if (HasErrors) {
|
||||||
errs() << "Module IR Dump\n";
|
errs() << "Module IR Dump\n";
|
||||||
M.print(errs(), nullptr, false);
|
M.print(errs(), nullptr, false);
|
||||||
|
|
Loading…
Reference in New Issue