diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-22 00:29:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-22 00:29:44 +0000 |
commit | d65145bd3d5cf7ca5f318b0ec8f8f42d34a39d35 (patch) | |
tree | 7c19edf0823b1b627195ffe7e54d165700743a3c /lib/Analysis/DataStructure/DataStructure.cpp | |
parent | 560af8aa975cdd27c1e3217e8c633650a796357d (diff) |
now that the second argument is always this->ReturnNodes, don't bother passing it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/DataStructure.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 5cd37840c8..e847280637 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/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, ReturnNodes, NodeMap, CloneFlags); + cloneInto(G, NodeMap, CloneFlags); } DSGraph::DSGraph(const DSGraph &G, NodeMapTy &NodeMap, EquivalenceClasses<GlobalValue*> &ECs) : GlobalsGraph(0), ScalarMap(ECs), TD(G.TD) { PrintAuxCalls = false; - cloneInto(G, ReturnNodes, NodeMap); + cloneInto(G, NodeMap); } DSGraph::~DSGraph() { @@ -1242,8 +1242,7 @@ DSNode *DSGraph::addObjectToGraph(Value *Ptr, bool UseDeclaredType) { /// /// The CloneFlags member controls various aspects of the cloning process. /// -void DSGraph::cloneInto(const DSGraph &G, - ReturnNodesTy &OldReturnNodes, NodeMapTy &OldNodeMap, +void DSGraph::cloneInto(const DSGraph &G, NodeMapTy &OldNodeMap, unsigned CloneFlags) { TIME_REGION(X, "cloneInto"); assert(OldNodeMap.empty() && "Returned OldNodeMap should be empty!"); @@ -1306,9 +1305,9 @@ void DSGraph::cloneInto(const DSGraph &G, const DSNodeHandle &Ret = I->second; DSNodeHandle &MappedRet = OldNodeMap[Ret.getNode()]; DSNode *MappedRetN = MappedRet.getNode(); - OldReturnNodes.insert(std::make_pair(I->first, - DSNodeHandle(MappedRetN, - MappedRet.getOffset()+Ret.getOffset()))); + ReturnNodes.insert(std::make_pair(I->first, + DSNodeHandle(MappedRetN, + MappedRet.getOffset()+Ret.getOffset()))); } } |