[Debugify] Avoid printing unnecessary square braces, NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333236 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vedant Kumar
2018-05-24 23:00:22 +00:00
parent fca4ed2fcf
commit 951e605c7b
3 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -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);