summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-05 18:38:37 +0000
committerChris Lattner <sabre@nondot.org>2003-08-05 18:38:37 +0000
commit61182a2021574b03ef0d13fb7e8401d17f95d4c4 (patch)
tree899dcbe10d3c70b9b02a851df6aab38c3e395340 /llvm/lib/Analysis/DataStructure
parent44309a112fdb352e5e5179c2ceea59ced79f0e91 (diff)
downloadbcm5719-llvm-61182a2021574b03ef0d13fb7e8401d17f95d4c4.tar.gz
bcm5719-llvm-61182a2021574b03ef0d13fb7e8401d17f95d4c4.zip
Add more verbose comment
llvm-svn: 7610
Diffstat (limited to 'llvm/lib/Analysis/DataStructure')
-rw-r--r--llvm/lib/Analysis/DataStructure/DataStructure.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp
index f930c0272ed..241c2a9e354 100644
--- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/llvm/lib/Analysis/DataStructure/DataStructure.cpp
@@ -1582,19 +1582,18 @@ void DSGraph::AssertGraphOK() const {
AssertAuxCallNodesInGraph();
}
-// A function useful for clients to incorporate the globals graph
-// into the DS, BU or TD graph for a function. This code retains
-// all globals, i.e., does not delete unreachable globals after they
-// are inlined.
-//
-void DSGraph::mergeInGlobalsGraph()
-{
+/// mergeInGlobalsGraph - This method is useful for clients to incorporate the
+/// globals graph into the DS, BU or TD graph for a function. This code retains
+/// all globals, i.e., does not delete unreachable globals after they are
+/// inlined.
+///
+void DSGraph::mergeInGlobalsGraph() {
NodeMapTy GlobalNodeMap;
ScalarMapTy OldValMap;
ReturnNodesTy OldRetNodes;
- this->cloneInto(*GlobalsGraph, OldValMap, OldRetNodes, GlobalNodeMap,
- DSGraph::KeepAllocaBit | DSGraph::DontCloneCallNodes |
- DSGraph::DontCloneAuxCallNodes);
+ cloneInto(*GlobalsGraph, OldValMap, OldRetNodes, GlobalNodeMap,
+ DSGraph::KeepAllocaBit | DSGraph::DontCloneCallNodes |
+ DSGraph::DontCloneAuxCallNodes);
// Now merge existing global nodes in the GlobalsGraph with their copies
for (ScalarMapTy::iterator I = ScalarMap.begin(), E = ScalarMap.end();
OpenPOWER on IntegriCloud