Add more verbose comment
authorChris Lattner <sabre@nondot.org>
Tue, 5 Aug 2003 18:38:37 +0000 (18:38 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 5 Aug 2003 18:38:37 +0000 (18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7610 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/DataStructure.cpp

index f930c0272ed1925a848304db976bdcc8df553d21..241c2a9e35485a339b852cda1845254ddbd36e0a 100644 (file)
@@ -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();