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 | dec03a08d66c21a6d149b368441354f0606ed2d4 (patch) | |
tree | f5df7838287ba3728baeffcad401d4f4edb40385 /llvm/lib | |
parent | 1e102971d2fb3a61b2a5662161c8552e677b7037 (diff) | |
download | bcm5719-llvm-dec03a08d66c21a6d149b368441354f0606ed2d4.tar.gz bcm5719-llvm-dec03a08d66c21a6d149b368441354f0606ed2d4.zip |
Make sure debug code is not evaluated in non-debug case.
llvm-svn: 34856
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Utils/LowerSwitch.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerSwitch.cpp b/llvm/lib/Transforms/Utils/LowerSwitch.cpp index c005d42197e..652833c4598 100644 --- a/llvm/lib/Transforms/Utils/LowerSwitch.cpp +++ b/llvm/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); |