diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-17 07:33:59 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-17 07:33:59 +0000 |
commit | fc9063e9cdf0cf84354915379e4b82661da87e2e (patch) | |
tree | 6f349bca3b9bdce0bffa563c0d37af1ec1b14cd6 /llvm/lib/Analysis/DataStructure/Local.cpp | |
parent | 3216551491d5d8652f0ea1679d7ada1c0da17c50 (diff) | |
download | bcm5719-llvm-fc9063e9cdf0cf84354915379e4b82661da87e2e.tar.gz bcm5719-llvm-fc9063e9cdf0cf84354915379e4b82661da87e2e.zip |
Replace DEBUG(std::cerr with DOUT. Removed some iostream #includes.
llvm-svn: 31811
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/Local.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index 856ceb3c9a5..c8880c11c53 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/lib/Analysis/DataStructure/Local.cpp @@ -188,7 +188,7 @@ DSGraph::DSGraph(EquivalenceClasses<GlobalValue*> &ECs, const TargetData &td, : GlobalsGraph(GG), ScalarMap(ECs), TD(td) { PrintAuxCalls = false; - DEBUG(std::cerr << " [Loc] Calculating graph for: " << F.getName() << "\n"); + DOUT << " [Loc] Calculating graph for: " << F.getName() << "\n"; // Use the graph builder to construct the local version of the graph GraphBuilder B(F, *this, ReturnNodes[&F], FunctionCalls); @@ -573,7 +573,7 @@ bool GraphBuilder::visitIntrinsic(CallSite CS, Function *F) { N->setModifiedMarker(); return true; default: - DEBUG(std::cerr << "[dsa:local] Unhandled intrinsic: " << F->getName() << "\n"); + DOUT << "[dsa:local] Unhandled intrinsic: " << F->getName() << "\n"; return false; } } @@ -1047,8 +1047,8 @@ void GraphBuilder::visitCallSite(CallSite CS) { break; } if (Warn) { - DEBUG(std::cerr << "WARNING: Call to unknown external function '" - << F->getName() << "' will cause pessimistic results!\n"); + DOUT << "WARNING: Call to unknown external function '" + << F->getName() << "' will cause pessimistic results!\n"; } } @@ -1158,7 +1158,7 @@ void GraphBuilder::MergeConstantInitIntoNode(DSNodeHandle &NH, Constant *C) { DSNodeHandle NewNH(NHN, NH.getOffset()+(unsigned)SL->MemberOffsets[i]); MergeConstantInitIntoNode(NewNH, cast<Constant>(CS->getOperand(i))); } else if (SL->MemberOffsets[i] == SL->StructSize) { - DEBUG(std::cerr << "Zero size element at end of struct\n"); + DOUT << "Zero size element at end of struct\n"; NHN->foldNodeCompletely(); } else { assert(0 && "type was smaller than offsets of of struct layout indicate"); @@ -1280,7 +1280,7 @@ bool LocalDataStructures::runOnModule(Module &M) { // together the globals into equivalence classes. std::set<GlobalValue*> ECGlobals; BuildGlobalECs(*GlobalsGraph, ECGlobals); - DEBUG(std::cerr << "Eliminating " << ECGlobals.size() << " EC Globals!\n"); + DOUT << "Eliminating " << ECGlobals.size() << " EC Globals!\n"; ECGlobals.clear(); // Calculate all of the graphs... @@ -1298,7 +1298,7 @@ bool LocalDataStructures::runOnModule(Module &M) { // program. BuildGlobalECs(*GlobalsGraph, ECGlobals); if (!ECGlobals.empty()) { - DEBUG(std::cerr << "Eliminating " << ECGlobals.size() << " EC Globals!\n"); + DOUT << "Eliminating " << ECGlobals.size() << " EC Globals!\n"; for (hash_map<Function*, DSGraph*>::iterator I = DSInfo.begin(), E = DSInfo.end(); I != E; ++I) EliminateUsesOfECGlobals(*I->second, ECGlobals); |