[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/TopDownClosure.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Jun 29 23:54:01 PDT 2003


Changes in directory llvm/lib/Analysis/DataStructure:

TopDownClosure.cpp updated: 1.45 -> 1.46

---
Log message:

Remove dead method


---
Diffs of the changes:

Index: llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
diff -u llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.45 llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.46
--- llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.45	Sun Jun 29 23:53:08 2003
+++ llvm/lib/Analysis/DataStructure/TopDownClosure.cpp	Sun Jun 29 23:53:39 2003
@@ -59,33 +59,6 @@
   GlobalsGraph = 0;
 }
 
-#if 0
-/// ResolveCallSite - This method is used to link the actual arguments together
-/// with the formal arguments for a function call in the top-down closure.  This
-/// method assumes that the call site arguments have been mapped into nodes
-/// local to the specified graph.
-///
-void TDDataStructures::ResolveCallSite(DSGraph &Graph,
-                                       const DSCallSite &CallSite) {
-  // Resolve all of the function formal arguments...
-  Function &F = Graph.getFunction();
-  Function::aiterator AI = F.abegin();
-
-  for (unsigned i = 0, e = CallSite.getNumPtrArgs(); i != e; ++i, ++AI) {
-    // Advance the argument iterator to the first pointer argument...
-    while (!DS::isPointerType(AI->getType())) ++AI;
-    
-    // TD ...Merge the formal arg scalar with the actual arg node
-    DSNodeHandle &NodeForFormal = Graph.getNodeForValue(AI);
-    assert(NodeForFormal.getNode() && "Pointer argument has no dest node!");
-    NodeForFormal.mergeWith(CallSite.getPtrArg(i));
-  }
-  
-  // Merge returned node in the caller with the "return" node in callee
-  if (CallSite.getRetVal().getNode() && Graph.getRetNode().getNode())
-    Graph.getRetNode().mergeWith(CallSite.getRetVal());
-}
-#endif
 
 DSGraph &TDDataStructures::getOrCreateDSGraph(Function &F) {
   DSGraph *&G = DSInfo[&F];





More information about the llvm-commits mailing list