summaryrefslogtreecommitdiff
path: root/lib/VMCore/DebugInfoProbe.cpp
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
commit2a2116723f39c1f7ca4d4c35b8bdf0649c973d43 (patch)
tree16e512cdca63ce22220d62c14d8c55f6eb4ac223 /lib/VMCore/DebugInfoProbe.cpp
parentb0884f3f13ca6e5d83e3232d8390a4d58739d57c (diff)
downloadllvm-2a2116723f39c1f7ca4d4c35b8bdf0649c973d43.tar.gz
llvm-2a2116723f39c1f7ca4d4c35b8bdf0649c973d43.tar.bz2
llvm-2a2116723f39c1f7ca4d4c35b8bdf0649c973d43.tar.xz
Coalesce some DEBUGs (moving an only-used-in-DEBUG variable's declaration into the DEBUG)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/DebugInfoProbe.cpp')
-rw-r--r--lib/VMCore/DebugInfoProbe.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/VMCore/DebugInfoProbe.cpp b/lib/VMCore/DebugInfoProbe.cpp
index 43eda47dbe..d417e4bc35 100644
--- a/lib/VMCore/DebugInfoProbe.cpp
+++ b/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;
}
}