llvm.org GIT mirror llvm / acbc8c6
Remove dead method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6999 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 0 addition(s) and 27 deletion(s). Raw diff Collapse all Expand all
5858 GlobalsGraph = 0;
5959 }
6060
61 #if 0
62 /// ResolveCallSite - This method is used to link the actual arguments together
63 /// with the formal arguments for a function call in the top-down closure. This
64 /// method assumes that the call site arguments have been mapped into nodes
65 /// local to the specified graph.
66 ///
67 void TDDataStructures::ResolveCallSite(DSGraph &Graph,
68 const DSCallSite &CallSite) {
69 // Resolve all of the function formal arguments...
70 Function &F = Graph.getFunction();
71 Function::aiterator AI = F.abegin();
72
73 for (unsigned i = 0, e = CallSite.getNumPtrArgs(); i != e; ++i, ++AI) {
74 // Advance the argument iterator to the first pointer argument...
75 while (!DS::isPointerType(AI->getType())) ++AI;
76
77 // TD ...Merge the formal arg scalar with the actual arg node
78 DSNodeHandle &NodeForFormal = Graph.getNodeForValue(AI);
79 assert(NodeForFormal.getNode() && "Pointer argument has no dest node!");
80 NodeForFormal.mergeWith(CallSite.getPtrArg(i));
81 }
82
83 // Merge returned node in the caller with the "return" node in callee
84 if (CallSite.getRetVal().getNode() && Graph.getRetNode().getNode())
85 Graph.getRetNode().mergeWith(CallSite.getRetVal());
86 }
87 #endif
8861
8962 DSGraph &TDDataStructures::getOrCreateDSGraph(Function &F) {
9063 DSGraph *&G = DSInfo[&F];