summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-04-28 22:26:05 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-04-28 22:26:05 +0000
commitc99298ab5e8155e5852c4e6355e11a16d9be4b85 (patch)
tree892f839955789f9bd470fba8d4c8a5f97e53065b
parentcf9d1ad62ec690e7cce30a48547431ec4e01e68e (diff)
downloadbcm5719-llvm-c99298ab5e8155e5852c4e6355e11a16d9be4b85.tar.gz
bcm5719-llvm-c99298ab5e8155e5852c4e6355e11a16d9be4b85.zip
Coalesce some DEBUGs (moving an only-used-in-DEBUG variable's declaration into the DEBUG)
llvm-svn: 130448
-rw-r--r--llvm/lib/VMCore/DebugInfoProbe.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/lib/VMCore/DebugInfoProbe.cpp b/llvm/lib/VMCore/DebugInfoProbe.cpp
index 43eda47dbe1..d417e4bc358 100644
--- a/llvm/lib/VMCore/DebugInfoProbe.cpp
+++ b/llvm/lib/VMCore/DebugInfoProbe.cpp
@@ -168,12 +168,13 @@ void DebugInfoProbeImpl::finalize(Function &F) {
DEBUG(dbgs()
<< "DebugInfoProbe("
<< PassName
- << "): Losing dbg info for variable: ");
- if (MDString *MDS = dyn_cast_or_null<MDString>((*I)->getOperand(2)))
- DEBUG(dbgs() << MDS->getString());
- else
- DEBUG(dbgs() << "...");
- DEBUG(dbgs() << "\n");
+ << "): Losing dbg info for variable: ";
+ if (MDString *MDS = dyn_cast_or_null<MDString>(
+ (*I)->getOperand(2)))
+ dbgs() << MDS->getString();
+ else
+ dbgs() << "...";
+ dbgs() << "\n");
++NumDbgValueLost;
}
}
OpenPOWER on IntegriCloud