From: Reid Spencer Date: Fri, 2 Mar 2007 23:15:21 +0000 (+0000) Subject: Make sure debug code is not evaluated in non-debug case. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e8391e039e18073ddb5486f4e3c046972a29b864;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Utils/LowerSwitch.cpp b/lib/Transforms/Utils/LowerSwitch.cpp index c005d42197e..652833c4598 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(Pivot.first)->getValue().toStringSigned(10) << "\n"; + DEBUG( DOUT << "Pivot ==> " + << cast(Pivot.first)->getValue().toStringSigned(10) + << "\n"); BasicBlock* LBranch = switchConvert(LHS.begin(), LHS.end(), Val, OrigBlock, Default);