OSDN Git Service

Eliminate some duplicated debug code
authorChris Lattner <sabre@nondot.org>
Tue, 1 Feb 2005 21:55:40 +0000 (21:55 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 1 Feb 2005 21:55:40 +0000 (21:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19980 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/BottomUpClosure.cpp

index 07de2e4..1735848 100644 (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();