Print Debug Code to stderr instead of stdout so that it doesn't mess up the assembly output

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@841 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-10-15 18:30:06 +00:00
parent 1e23ed7c65
commit 634b352fa6
12 changed files with 53 additions and 53 deletions
+6 -6
View File
@@ -54,7 +54,7 @@ void MethodLiveVarInfo::constructBBs()
const BasicBlock *BB = *BBI; // get the current BB
if(DEBUG_LV) { cout << " For BB "; printValue(BB); cout << ":" << endl; }
if(DEBUG_LV) { cerr << " For BB "; printValue(BB); cerr << ":" << endl; }
// create a new BBLiveVar
BBLiveVar * LVBB = new BBLiveVar( BB, POId );
@@ -92,7 +92,7 @@ bool MethodLiveVarInfo::doSingleBackwardPass()
bool ResultFlow, NeedAnotherIteration = false;
if(DEBUG_LV)
cout << endl << " After Backward Pass ..." << endl;
cerr << endl << " After Backward Pass ..." << endl;
po_iterator<const Method*> BBI = po_begin(Meth);
@@ -102,8 +102,8 @@ bool MethodLiveVarInfo::doSingleBackwardPass()
BBLiveVar* LVBB = BB2BBLVMap[*BBI];
assert( LVBB );
if(DEBUG_LV) cout << " For BB " << (*BBI)->getName() << ":" << endl;
// cout << " (POId=" << LVBB->getPOId() << ")" << endl ;
if(DEBUG_LV) cerr << " For BB " << (*BBI)->getName() << ":" << endl;
// cerr << " (POId=" << LVBB->getPOId() << ")" << endl ;
ResultFlow = false;
@@ -136,7 +136,7 @@ void MethodLiveVarInfo::analyze()
if (HasAnalyzed)
return;
if( DEBUG_LV) cout << "Analysing live variables ..." << endl;
if( DEBUG_LV) cerr << "Analysing live variables ..." << endl;
// create and initialize all the BBLiveVars of the CFG
constructBBs();
@@ -149,7 +149,7 @@ void MethodLiveVarInfo::analyze()
HasAnalyzed = true; // finished analysing
if( DEBUG_LV) cout << "Live Variable Analysis complete!" << endl;
if( DEBUG_LV) cerr << "Live Variable Analysis complete!" << endl;
}