diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-03-22 00:21:05 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-03-22 00:21:05 +0000 |
| commit | 19944fade3fd451e63b1d66a57953d0cd08ece18 (patch) | |
| tree | 9b706fa60506d1cc37c6f58e743ad8e223cdd798 /llvm/lib/Analysis/DataStructure/DataStructure.cpp | |
| parent | d22030f8db9554abc85c9d49139a8034e9c70226 (diff) | |
| download | bcm5719-llvm-19944fade3fd451e63b1d66a57953d0cd08ece18.tar.gz bcm5719-llvm-19944fade3fd451e63b1d66a57953d0cd08ece18.zip | |
remove the second argument to cloneInto
llvm-svn: 20754
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/DataStructure.cpp')
| -rw-r--r-- | llvm/lib/Analysis/DataStructure/DataStructure.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp index e2edb1cb725..d91acfb5252 100644 --- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp +++ b/llvm/lib/Analysis/DataStructure/DataStructure.cpp @@ -1169,14 +1169,14 @@ DSGraph::DSGraph(const DSGraph &G, EquivalenceClasses<GlobalValue*> &ECs, : GlobalsGraph(0), ScalarMap(ECs), TD(G.TD) { PrintAuxCalls = false; NodeMapTy NodeMap; - cloneInto(G, ScalarMap, ReturnNodes, NodeMap, CloneFlags); + cloneInto(G, ReturnNodes, NodeMap, CloneFlags); } DSGraph::DSGraph(const DSGraph &G, NodeMapTy &NodeMap, EquivalenceClasses<GlobalValue*> &ECs) : GlobalsGraph(0), ScalarMap(ECs), TD(G.TD) { PrintAuxCalls = false; - cloneInto(G, ScalarMap, ReturnNodes, NodeMap); + cloneInto(G, ReturnNodes, NodeMap); } DSGraph::~DSGraph() { @@ -1236,12 +1236,13 @@ DSNode *DSGraph::addObjectToGraph(Value *Ptr, bool UseDeclaredType) { /// cloneInto - Clone the specified DSGraph into the current graph. The -/// translated ScalarMap for the old function is filled into the OldValMap -/// member, and the translated ReturnNodes map is returned into ReturnNodes. +/// translated ScalarMap for the old function is filled into the ScalarMap +/// for the graph, and the translated ReturnNodes map is returned into +/// ReturnNodes. /// /// The CloneFlags member controls various aspects of the cloning process. /// -void DSGraph::cloneInto(const DSGraph &G, DSScalarMap &OldValMap, +void DSGraph::cloneInto(const DSGraph &G, ReturnNodesTy &OldReturnNodes, NodeMapTy &OldNodeMap, unsigned CloneFlags) { TIME_REGION(X, "cloneInto"); @@ -1281,7 +1282,7 @@ void DSGraph::cloneInto(const DSGraph &G, DSScalarMap &OldValMap, for (DSScalarMap::const_iterator I = G.ScalarMap.begin(), E = G.ScalarMap.end(); I != E; ++I) { DSNodeHandle &MappedNode = OldNodeMap[I->second.getNode()]; - DSNodeHandle &H = OldValMap[I->first]; + DSNodeHandle &H = ScalarMap[I->first]; DSNode *MappedNodeN = MappedNode.getNode(); H.mergeWith(DSNodeHandle(MappedNodeN, I->second.getOffset()+MappedNode.getOffset())); |

