summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-09-06 19:06:06 +0000
committerManman Ren <mren@apple.com>2012-09-06 19:06:06 +0000
commit742534c4dca641d1587a67f443e060af6ce2a2f5 (patch)
tree32e8864e8b220abb99cc53d267d96acd5ef00a47 /llvm/lib/CodeGen/LiveVariables.cpp
parent979780f68f7a81c090f3a45e8167f80ff94660a5 (diff)
downloadbcm5719-llvm-742534c4dca641d1587a67f443e060af6ce2a2f5.tar.gz
bcm5719-llvm-742534c4dca641d1587a67f443e060af6ce2a2f5.zip
Release build: guard dump functions with "ifndef NDEBUG"
No functional change. llvm-svn: 163339
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveVariables.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp
index 348ed3a0f93..6c94690e771 100644
--- a/llvm/lib/CodeGen/LiveVariables.cpp
+++ b/llvm/lib/CodeGen/LiveVariables.cpp
@@ -65,6 +65,7 @@ LiveVariables::VarInfo::findKill(const MachineBasicBlock *MBB) const {
}
void LiveVariables::VarInfo::dump() const {
+#ifndef NDEBUG
dbgs() << " Alive in blocks: ";
for (SparseBitVector<>::iterator I = AliveBlocks.begin(),
E = AliveBlocks.end(); I != E; ++I)
@@ -77,6 +78,7 @@ void LiveVariables::VarInfo::dump() const {
dbgs() << "\n #" << i << ": " << *Kills[i];
dbgs() << "\n";
}
+#endif
}
/// getVarInfo - Get (possibly creating) a VarInfo object for the given vreg.
OpenPOWER on IntegriCloud