aboutsummaryrefslogtreecommitdiff
path: root/tools/opt
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-05-24 23:00:22 +0000
committerVedant Kumar <vsk@apple.com>2018-05-24 23:00:22 +0000
commit951e605c7ba11fc89e225bf3203d7f47651fbef8 (patch)
tree9a41ecc2e68f71cb7bb82517973875451465ce73 /tools/opt
parentfca4ed2fcf54fe8530353c66549f74d5d28fe9e3 (diff)
[Debugify] Avoid printing unnecessary square braces, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333236 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/Debugify.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/opt/Debugify.cpp b/tools/opt/Debugify.cpp
index 39bbaa81316..fb810da231f 100644
--- a/tools/opt/Debugify.cpp
+++ b/tools/opt/Debugify.cpp
@@ -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);