aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCValue.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-09-06 19:55:56 +0000
committerManman Ren <mren@apple.com>2012-09-06 19:55:56 +0000
commitc3366ccecb3ffa7eecf0c8a173e5fc8387a44b29 (patch)
treedb482bae56f5e3a06e1ad311ee506ecd1d088c02 /llvm/lib/MC/MCValue.cpp
parent84ecc3481b7dc1c9a8264dd11ea91ff9dcd9dbd2 (diff)
downloadllvm-c3366ccecb3ffa7eecf0c8a173e5fc8387a44b29.zip
llvm-c3366ccecb3ffa7eecf0c8a173e5fc8387a44b29.tar.gz
llvm-c3366ccecb3ffa7eecf0c8a173e5fc8387a44b29.tar.bz2
Release build: guard dump functions with "ifndef NDEBUG"
No functional change. llvm-svn: 163344
Diffstat (limited to 'llvm/lib/MC/MCValue.cpp')
-rw-r--r--llvm/lib/MC/MCValue.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCValue.cpp b/llvm/lib/MC/MCValue.cpp
index c6ea16c..a37149d7 100644
--- a/llvm/lib/MC/MCValue.cpp
+++ b/llvm/lib/MC/MCValue.cpp
@@ -31,6 +31,8 @@ void MCValue::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
OS << " + " << getConstant();
}
+#ifndef NDEBUG
void MCValue::dump() const {
print(dbgs(), 0);
}
+#endif