summaryrefslogtreecommitdiff
path: root/lib/MC/MCInst.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-09-12 05:06:18 +0000
committerManman Ren <mren@apple.com>2012-09-12 05:06:18 +0000
commit286c4dc355b8be6806081b23c3097485821c7642 (patch)
tree37e4b539af13a0213a562bf274c0a7821eff2af6 /lib/MC/MCInst.cpp
parent0a16da445740ca6fcd7a7ca571c1917e77315904 (diff)
downloadllvm-286c4dc355b8be6806081b23c3097485821c7642.tar.gz
llvm-286c4dc355b8be6806081b23c3097485821c7642.tar.bz2
llvm-286c4dc355b8be6806081b23c3097485821c7642.tar.xz
Release build: guard dump functions with
"#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)" No functional change. Update r163344. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCInst.cpp')
-rw-r--r--lib/MC/MCInst.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCInst.cpp b/lib/MC/MCInst.cpp
index e96010bd5c..124cc149be 100644
--- a/lib/MC/MCInst.cpp
+++ b/lib/MC/MCInst.cpp
@@ -32,7 +32,7 @@ void MCOperand::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
OS << ">";
}
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void MCOperand::dump() const {
print(dbgs(), 0);
dbgs() << "\n";
@@ -64,7 +64,7 @@ void MCInst::dump_pretty(raw_ostream &OS, const MCAsmInfo *MAI,
OS << ">";
}
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void MCInst::dump() const {
print(dbgs(), 0);
dbgs() << "\n";