summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineFunction.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/MachineFunction.cpp
parent45c5c57179e8b4938042431f8e12c9bfad67b3c8 (diff)
downloadllvm-77e300e8f0b8db8eec448cae9c87d7c5bfad9757.tar.gz
llvm-77e300e8f0b8db8eec448cae9c87d7c5bfad9757.tar.bz2
llvm-77e300e8f0b8db8eec448cae9c87d7c5bfad9757.tar.xz
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/MachineFunction.cpp')
-rw-r--r--lib/CodeGen/MachineFunction.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index 70d1bb32b1..c282332037 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/lib/CodeGen/MachineFunction.cpp
@@ -284,9 +284,11 @@ MachineFunction::extractStoreMemRefs(MachineInstr::mmo_iterator Begin,
return std::make_pair(Result, Result + Num);
}
+#ifndef NDEBUG
void MachineFunction::dump() const {
print(dbgs());
}
+#endif
StringRef MachineFunction::getName() const {
assert(getFunction() && "No function!");
@@ -532,9 +534,11 @@ void MachineFrameInfo::print(const MachineFunction &MF, raw_ostream &OS) const{
}
}
+#ifndef NDEBUG
void MachineFrameInfo::dump(const MachineFunction &MF) const {
print(MF, dbgs());
}
+#endif
//===----------------------------------------------------------------------===//
// MachineJumpTableInfo implementation
@@ -629,7 +633,9 @@ void MachineJumpTableInfo::print(raw_ostream &OS) const {
OS << '\n';
}
+#ifndef NDEBUG
void MachineJumpTableInfo::dump() const { print(dbgs()); }
+#endif
//===----------------------------------------------------------------------===//
@@ -762,4 +768,6 @@ void MachineConstantPool::print(raw_ostream &OS) const {
}
}
+#ifndef NDEBUG
void MachineConstantPool::dump() const { print(dbgs()); }
+#endif