projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1bed4c
)
Make sure debug code is not evaluated in non-debug case.
author
Reid Spencer
<rspencer@reidspencer.com>
Fri, 2 Mar 2007 23:15:21 +0000
(23:15 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Fri, 2 Mar 2007 23:15:21 +0000
(23:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34856
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/LowerSwitch.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/LowerSwitch.cpp
b/lib/Transforms/Utils/LowerSwitch.cpp
index c005d42197e599e132fed147627032a3569ef4b4..652833c45983af013fb93345ccff122e4d110f8d 100644
(file)
--- 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);