diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-30 04:53:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-30 04:53:39 +0000 |
commit | acbc8c67686615316fd410c7818bd4177fe98de8 (patch) | |
tree | b04da7b25fed2ad3b4ced5845c3a160f6cb46dc2 /lib/Analysis/DataStructure/TopDownClosure.cpp | |
parent | 81d924d8045f61f3a6165de701f8ef6ec249ea31 (diff) |
Remove dead method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/TopDownClosure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/TopDownClosure.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp index 7eea922661..f1d13b4d53 100644 --- a/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/lib/Analysis/DataStructure/TopDownClosure.cpp @@ -59,33 +59,6 @@ void TDDataStructures::releaseMyMemory() { 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]; |