// 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
// 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
// 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);
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...
//
DSNodeHandle RetVal = Graph->cloneInto(CG, OldValMap, OldNodeMap,
/*StripScalars*/ true,
- /*StripAllocas*/ false,
- /*CopyCallers*/ true,
- /*CopyOrigCalls*/false);
+ /*StripAllocas*/ false);
ResolveCallSite(*Graph, DSCallSite(CallSiteInCG, OldNodeMap));
}
}