diff options
-rw-r--r-- | lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | 5 | ||||
-rw-r--r-- | lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp b/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp index 898dd28..b9fd0ff 100644 --- a/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp +++ b/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp @@ -52,9 +52,10 @@ void MethodLiveVarInfo::constructBBs() for( ; BBI != po_end(Meth) ; ++BBI, ++POId) { - if(DEBUG_LV) cout << " For BB " << (*BBI)->getName() << ":" << endl ; - const BasicBlock *BB = *BBI; // get the current BB + + if(DEBUG_LV) { cout << " For BB "; printValue(BB); cout << ":" << endl; } + // create a new BBLiveVar BBLiveVar * LVBB = new BBLiveVar( BB, POId ); diff --git a/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp b/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp index 898dd28..b9fd0ff 100644 --- a/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp +++ b/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp @@ -52,9 +52,10 @@ void MethodLiveVarInfo::constructBBs() for( ; BBI != po_end(Meth) ; ++BBI, ++POId) { - if(DEBUG_LV) cout << " For BB " << (*BBI)->getName() << ":" << endl ; - const BasicBlock *BB = *BBI; // get the current BB + + if(DEBUG_LV) { cout << " For BB "; printValue(BB); cout << ":" << endl; } + // create a new BBLiveVar BBLiveVar * LVBB = new BBLiveVar( BB, POId ); |