diff options
author | Manman Ren <mren@apple.com> | 2012-09-06 19:06:06 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-09-06 19:06:06 +0000 |
commit | 742534c4dca641d1587a67f443e060af6ce2a2f5 (patch) | |
tree | 32e8864e8b220abb99cc53d267d96acd5ef00a47 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 979780f68f7a81c090f3a45e8167f80ff94660a5 (diff) | |
download | llvm-742534c4dca641d1587a67f443e060af6ce2a2f5.zip llvm-742534c4dca641d1587a67f443e060af6ce2a2f5.tar.gz llvm-742534c4dca641d1587a67f443e060af6ce2a2f5.tar.bz2 |
Release build: guard dump functions with "ifndef NDEBUG"
No functional change.
llvm-svn: 163339
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 70d1bb3..c282332 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/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 |