aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SlotIndexes.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
commit77e300e8f0b8db8eec448cae9c87d7c5bfad9757 (patch)
tree17cbbb95fb7d5d677d61377147f61c7aa3a55b0b /lib/CodeGen/SlotIndexes.cpp
parent45c5c57179e8b4938042431f8e12c9bfad67b3c8 (diff)
downloadexternal_llvm-77e300e8f0b8db8eec448cae9c87d7c5bfad9757.tar.gz
external_llvm-77e300e8f0b8db8eec448cae9c87d7c5bfad9757.tar.bz2
external_llvm-77e300e8f0b8db8eec448cae9c87d7c5bfad9757.zip
Release build: guard dump functions with "ifndef NDEBUG"
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SlotIndexes.cpp')
-rw-r--r--lib/CodeGen/SlotIndexes.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SlotIndexes.cpp b/lib/CodeGen/SlotIndexes.cpp
index c8c3fb37ad..c98efb480c 100644
--- a/lib/CodeGen/SlotIndexes.cpp
+++ b/lib/CodeGen/SlotIndexes.cpp
@@ -143,6 +143,7 @@ void SlotIndexes::renumberIndexes(IndexList::iterator curItr) {
}
+#ifndef NDEBUG
void SlotIndexes::dump() const {
for (IndexList::const_iterator itr = indexList.begin();
itr != indexList.end(); ++itr) {
@@ -159,6 +160,7 @@ void SlotIndexes::dump() const {
dbgs() << "BB#" << i << "\t[" << MBBRanges[i].first << ';'
<< MBBRanges[i].second << ")\n";
}
+#endif
// Print a SlotIndex to a raw_ostream.
void SlotIndex::print(raw_ostream &os) const {
@@ -168,9 +170,11 @@ void SlotIndex::print(raw_ostream &os) const {
os << "invalid";
}
+#ifndef NDEBUG
// Dump a SlotIndex to stderr.
void SlotIndex::dump() const {
print(dbgs());
dbgs() << "\n";
}
+#endif