aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/EquivClassGraphs.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-22 00:36:51 +0000
committerChris Lattner <sabre@nondot.org>2005-03-22 00:36:51 +0000
commita2197139b5894a4225452b9ffc8417c5d05a157b (patch)
tree5fa4e0fb41ebd258547b622683d295adef6a8572 /lib/Analysis/DataStructure/EquivClassGraphs.cpp
parent5805c426dcc2b330565d247677cb12acf7002f15 (diff)
Now that the dead ctor is gone, nothing uses the old node mapping exported by
cloneInto: make it an internally used mapping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/EquivClassGraphs.cpp')
-rw-r--r--lib/Analysis/DataStructure/EquivClassGraphs.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Analysis/DataStructure/EquivClassGraphs.cpp b/lib/Analysis/DataStructure/EquivClassGraphs.cpp
index a778d94c58..7632200b83 100644
--- a/lib/Analysis/DataStructure/EquivClassGraphs.cpp
+++ b/lib/Analysis/DataStructure/EquivClassGraphs.cpp
@@ -270,8 +270,7 @@ void EquivClassGraphs::buildIndirectFunctionSets(Module &M) {
}
// Clone this member of the equivalence class into MergedG.
- DSGraph::NodeMapTy NodeMap;
- MergedG.cloneInto(CBUGraph, NodeMap);
+ MergedG.cloneInto(CBUGraph);
}
// Merge the return nodes of all functions together.
@@ -362,10 +361,7 @@ processSCC(DSGraph &FG, std::vector<DSGraph*> &Stack, unsigned &NextID,
// If the SCC found is not the same as those found in CBU, make sure to
// merge the graphs as appropriate.
- {
- DSGraph::NodeMapTy NodeMap;
- FG.cloneInto(*NG, NodeMap);
- }
+ FG.cloneInto(*NG);
// Update the DSInfo map and delete the old graph...
for (DSGraph::retnodes_iterator I = NG->retnodes_begin();