[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 5 13:39:11 PDT 2003


Changes in directory llvm/lib/Analysis/DataStructure:

DataStructure.cpp updated: 1.118 -> 1.119

---
Log message:

Add more verbose comment


---
Diffs of the changes:

Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.118 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.119
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.118	Tue Aug  5 12:04:41 2003
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp	Tue Aug  5 13:38:37 2003
@@ -1582,19 +1582,18 @@
   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(); 





More information about the llvm-commits mailing list