Make sure debug code is not evaluated in non-debug case.
authorReid Spencer <rspencer@reidspencer.com>
Fri, 2 Mar 2007 23:15:21 +0000 (23:15 +0000)
committerReid 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

index c005d42197e599e132fed147627032a3569ef4b4..652833c45983af013fb93345ccff122e4d110f8d 100644 (file)
@@ -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);