Delete unused arguments to DSGraph::cloneInto method
authorChris Lattner <sabre@nondot.org>
Mon, 21 Oct 2002 19:50:29 +0000 (19:50 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Oct 2002 19:50:29 +0000 (19:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4253 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSGraph.h
include/llvm/Analysis/DataStructure/DSGraph.h
lib/Analysis/DataStructure/BottomUpClosure.cpp
lib/Analysis/DataStructure/DataStructure.cpp
lib/Analysis/DataStructure/TopDownClosure.cpp

index 6eed55ddf7eb665d0fac7d6c16caa436356a531c..6fa4d6eecac3cb2d22fe1346f51e6cf17ea6b775 100644 (file)
@@ -579,14 +579,11 @@ public:
   // is filled into the OldValMap member.
   // If StripScalars (StripAllocas) is set to true, Scalar (Alloca) markers
   // are removed from the graph as the graph is being cloned.
-  // If CopyCallers is set to true, the PendingCallers list is copied.
-  // If CopyOrigCalls is set to true, the OrigFunctionCalls list is copied.
   //
   DSNodeHandle cloneInto(const DSGraph &G,
                          std::map<Value*, DSNodeHandle> &OldValMap,
                          std::map<const DSNode*, DSNode*> &OldNodeMap,
-                         bool StripScalars = false, bool StripAllocas = false,
-                         bool CopyCallers = true, bool CopyOrigCalls = true);
+                         bool StripScalars = false, bool StripAllocas = false);
 
 #if 0
   // cloneGlobalInto - Clone the given global node (or the node for the given
index 6eed55ddf7eb665d0fac7d6c16caa436356a531c..6fa4d6eecac3cb2d22fe1346f51e6cf17ea6b775 100644 (file)
@@ -579,14 +579,11 @@ public:
   // is filled into the OldValMap member.
   // If StripScalars (StripAllocas) is set to true, Scalar (Alloca) markers
   // are removed from the graph as the graph is being cloned.
-  // If CopyCallers is set to true, the PendingCallers list is copied.
-  // If CopyOrigCalls is set to true, the OrigFunctionCalls list is copied.
   //
   DSNodeHandle cloneInto(const DSGraph &G,
                          std::map<Value*, DSNodeHandle> &OldValMap,
                          std::map<const DSNode*, DSNode*> &OldNodeMap,
-                         bool StripScalars = false, bool StripAllocas = false,
-                         bool CopyCallers = true, bool CopyOrigCalls = true);
+                         bool StripScalars = false, bool StripAllocas = false);
 
 #if 0
   // cloneGlobalInto - Clone the given global node (or the node for the given
index 73786c96c5e17add2a17916d942c2b2480d2ef18..6d1a575e6b7551877cde71567443af0a17f39dba 100644 (file)
@@ -157,9 +157,7 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) {
             // structure graph.  Strip locals and don't copy the list of callers
             DSNodeHandle RetVal = Graph->cloneInto(GI, OldValMap, OldNodeMap,
                                                    /*StripScalars*/   true,
-                                                   /*StripAllocas*/   true,
-                                                   /*CopyCallers*/    false,
-                                                   /*CopyOrigCalls*/  false);
+                                                   /*StripAllocas*/   true);
 
             // Resolve the arguments in the call to the actual values...
             ResolveArguments(Call, FI, OldValMap);
index 4b3be84aaf5e070b2705c76b6ae37ce8ebcdb9ca..91c9a7cbd26089fbcbd20faca5dcf58b97f07237 100644 (file)
@@ -423,8 +423,7 @@ void DSNode::remapLinks(std::map<const DSNode*, DSNode*> &OldNodeMap) {
 DSNodeHandle DSGraph::cloneInto(const DSGraph &G, 
                                 std::map<Value*, DSNodeHandle> &OldValMap,
                                 std::map<const DSNode*, DSNode*> &OldNodeMap,
-                                bool StripScalars, bool StripAllocas,
-                                bool CopyCallers, bool CopyOrigCalls) {
+                                bool StripScalars, bool StripAllocas) {
   assert(OldNodeMap.empty() && "Returned OldNodeMap should be empty!");
 
   unsigned FN = Nodes.size();           // First new node...
index c573a52c9e0bd00b9ee2ee904f7c092988d92152..1fed1ab9a9c47664aebc13ad67f22e7d2cbca1af 100644 (file)
@@ -134,9 +134,7 @@ DSGraph &TDDataStructures::calculateGraph(Function &F) {
       // 
       DSNodeHandle RetVal = Graph->cloneInto(CG, OldValMap, OldNodeMap,
                                              /*StripScalars*/ true,
-                                             /*StripAllocas*/ false,
-                                             /*CopyCallers*/  true,
-                                             /*CopyOrigCalls*/false);
+                                             /*StripAllocas*/ false);
       ResolveCallSite(*Graph, DSCallSite(CallSiteInCG, OldNodeMap));
     }
   }