summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/Debugify.cpp
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
commitb70e35686b18a23d7fffa3060ef37a2279306155 (patch)
treef20148a73a5cceed874a6fff47b20d60e54c4e11 /llvm/tools/opt/Debugify.cpp
parent40399a213d3c494933bd903bb02dba5c1f574363 (diff)
downloadbcm5719-llvm-b70e35686b18a23d7fffa3060ef37a2279306155.tar.gz
bcm5719-llvm-b70e35686b18a23d7fffa3060ef37a2279306155.zip
[Debugify] Avoid printing unnecessary square braces, NFC
llvm-svn: 333236
Diffstat (limited to 'llvm/tools/opt/Debugify.cpp')
-rw-r--r--llvm/tools/opt/Debugify.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/tools/opt/Debugify.cpp b/llvm/tools/opt/Debugify.cpp
index 39bbaa81316..fb810da231f 100644
--- a/llvm/tools/opt/Debugify.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud