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 | 77e300e8f0b8db8eec448cae9c87d7c5bfad9757 (patch) | |
tree | 17cbbb95fb7d5d677d61377147f61c7aa3a55b0b /lib/CodeGen/RegisterPressure.cpp | |
parent | 45c5c57179e8b4938042431f8e12c9bfad67b3c8 (diff) | |
download | llvm-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/RegisterPressure.cpp')
-rw-r--r-- | lib/CodeGen/RegisterPressure.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/RegisterPressure.cpp b/lib/CodeGen/RegisterPressure.cpp index 43448c850a..6cdfe7cd72 100644 --- a/lib/CodeGen/RegisterPressure.cpp +++ b/lib/CodeGen/RegisterPressure.cpp @@ -63,6 +63,7 @@ void RegisterPressure::decrease(const TargetRegisterClass *RC, decreaseSetPressure(MaxSetPressure, RC, TRI); } +#ifndef NDEBUG void RegisterPressure::dump(const TargetRegisterInfo *TRI) { dbgs() << "Live In: "; for (unsigned i = 0, e = LiveInRegs.size(); i < e; ++i) @@ -78,6 +79,7 @@ void RegisterPressure::dump(const TargetRegisterInfo *TRI) { << '\n'; } } +#endif /// Increase the current pressure as impacted by these physical registers and /// bump the high water mark if needed. |