rename method, add counterpart

llvm-svn: 20593
This commit is contained in:
Chris Lattner
2005-03-15 00:58:16 +00:00
parent 9468d19ce9
commit 26415d7432
2 changed files with 16 additions and 4 deletions

View File

@@ -2084,9 +2084,10 @@ void DSGraph::computeNodeMapping(const DSNodeHandle &NH1,
}
/// computeGlobalGraphMapping - Compute the mapping of nodes in the global
/// graph to nodes in this graph.
void DSGraph::computeGlobalGraphMapping(NodeMapTy &NodeMap) {
/// computeGToGGMapping - Compute the mapping of nodes in the global graph to
/// nodes in this graph. Note that any uses of this method are probably bugs,
/// unless it is known that the globals graph has been merged into this graph!
void DSGraph::computeGToGGMapping(NodeMapTy &NodeMap) {
DSGraph &GG = *getGlobalsGraph();
DSScalarMap &SM = getScalarMap();
@@ -2095,3 +2096,14 @@ void DSGraph::computeGlobalGraphMapping(NodeMapTy &NodeMap) {
DSGraph::computeNodeMapping(SM[*I], GG.getNodeForValue(*I), NodeMap);
}
/// computeGGToGMapping - Compute the mapping of nodes in the global graph to
/// nodes in this graph.
void DSGraph::computeGGToGMapping(NodeMapTy &NodeMap) {
DSGraph &GG = *getGlobalsGraph();
DSScalarMap &SM = getScalarMap();
for (DSScalarMap::global_iterator I = SM.global_begin(),
E = SM.global_end(); I != E; ++I)
DSGraph::computeNodeMapping(GG.getNodeForValue(*I), SM[*I], NodeMap);
}