Eliminate some duplicated debug code

llvm-svn: 19980
This commit is contained in:
Chris Lattner 2005-02-01 21:55:40 +00:00
parent 5ce51e83af
commit 16a53243c6
1 changed files with 0 additions and 21 deletions

View File

@ -264,28 +264,7 @@ void BUDataStructures::calculateGraph(DSGraph &Graph) {
DSGraph::ReturnNodesTy &ReturnNodes = Graph.getReturnNodes();
// Print out multi-call sites.
bool Printed = false;
for (std::list<DSCallSite>::iterator I = TempFCs.begin(), E = TempFCs.end();
I != E; ++I) {
if (!I->isDirectCall()) {
DSNode *Node = I->getCalleeNode();
if (Node->getGlobals().size() > 1) {
if (!Printed)
std::cerr << "In Fns: " << Graph.getFunctionNames() << "\n";
std::cerr << " calls " << Node->getGlobals().size()
<< " fns from site: " << I->getCallSite().getInstruction()
<< " " << *I->getCallSite().getInstruction();
unsigned NumToPrint = Node->getGlobals().size();
if (NumToPrint > 5) NumToPrint = 5;
std::cerr << " Fns =";
for (unsigned i = 0; i != NumToPrint; ++i)
std::cerr << " " << Node->getGlobals()[i]->getName();
std::cerr << "\n";
}
}
}
while (!TempFCs.empty()) {
DSCallSite &CS = *TempFCs.begin();