[llvm-commits] CVS: llvm/lib/Transforms/Utils/LowerSwitch.cpp

Reid Spencer reid at x10sys.com
Fri Mar 2 15:15:38 PST 2007



Changes in directory llvm/lib/Transforms/Utils:

LowerSwitch.cpp updated: 1.33 -> 1.34
---
Log message:

Make sure debug code is not evaluated in non-debug case.


---
Diffs of the changes:  (+3 -2)

 LowerSwitch.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/lib/Transforms/Utils/LowerSwitch.cpp
diff -u llvm/lib/Transforms/Utils/LowerSwitch.cpp:1.33 llvm/lib/Transforms/Utils/LowerSwitch.cpp:1.34
--- llvm/lib/Transforms/Utils/LowerSwitch.cpp:1.33	Fri Mar  2 17:05:28 2007
+++ llvm/lib/Transforms/Utils/LowerSwitch.cpp	Fri Mar  2 17:15:21 2007
@@ -127,8 +127,9 @@
   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);






More information about the llvm-commits mailing list