diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-02 23:15:21 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-02 23:15:21 +0000 |
commit | e8391e039e18073ddb5486f4e3c046972a29b864 (patch) | |
tree | 1ef9613a284cfe935786ff32d6875125372727c2 /lib/Transforms/Utils/LowerSwitch.cpp | |
parent | f1bed4c720135b81ee46bd514cf3329abbf0c1a3 (diff) | |
download | llvm-e8391e039e18073ddb5486f4e3c046972a29b864.tar.gz llvm-e8391e039e18073ddb5486f4e3c046972a29b864.tar.bz2 llvm-e8391e039e18073ddb5486f4e3c046972a29b864.tar.xz |
Make sure debug code is not evaluated in non-debug case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerSwitch.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerSwitch.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LowerSwitch.cpp b/lib/Transforms/Utils/LowerSwitch.cpp index c005d42197..652833c459 100644 --- a/lib/Transforms/Utils/LowerSwitch.cpp +++ b/lib/Transforms/Utils/LowerSwitch.cpp @@ -127,8 +127,9 @@ BasicBlock* LowerSwitch::switchConvert(CaseItr Begin, CaseItr End, DOUT << "RHS: " << RHS << "\n"; Case& Pivot = *(Begin + Mid); - DOUT << "Pivot ==> " - << cast<ConstantInt>(Pivot.first)->getValue().toStringSigned(10) << "\n"; + DEBUG( DOUT << "Pivot ==> " + << cast<ConstantInt>(Pivot.first)->getValue().toStringSigned(10) + << "\n"); BasicBlock* LBranch = switchConvert(LHS.begin(), LHS.end(), Val, OrigBlock, Default); |