aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SlotIndexes.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-09-11 22:23:19 +0000
committerManman Ren <mren@apple.com>2012-09-11 22:23:19 +0000
commitb720be6a50f4e1b3280d2b029ee38dda14577525 (patch)
treeff0e2182d924a29c331f012eda1f3182f08e5451 /lib/CodeGen/SlotIndexes.cpp
parent66b64bec6021e3f38af090429c7e41d1180df5a9 (diff)
downloadexternal_llvm-b720be6a50f4e1b3280d2b029ee38dda14577525.tar.gz
external_llvm-b720be6a50f4e1b3280d2b029ee38dda14577525.tar.bz2
external_llvm-b720be6a50f4e1b3280d2b029ee38dda14577525.zip
Release build: guard dump functions with
"#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)" No functional change. Update r163339. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163653 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SlotIndexes.cpp')
-rw-r--r--lib/CodeGen/SlotIndexes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SlotIndexes.cpp b/lib/CodeGen/SlotIndexes.cpp
index c98efb480c..95faafab45 100644
--- a/lib/CodeGen/SlotIndexes.cpp
+++ b/lib/CodeGen/SlotIndexes.cpp
@@ -143,7 +143,7 @@ void SlotIndexes::renumberIndexes(IndexList::iterator curItr) {
}
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void SlotIndexes::dump() const {
for (IndexList::const_iterator itr = indexList.begin();
itr != indexList.end(); ++itr) {
@@ -170,7 +170,7 @@ void SlotIndex::print(raw_ostream &os) const {
os << "invalid";
}
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
// Dump a SlotIndex to stderr.
void SlotIndex::dump() const {
print(dbgs());