[llvm-commits] CVS: llvm/include/llvm/Analysis/DSGraph.h

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 21 10:33:01 PDT 2002


Changes in directory llvm/include/llvm/Analysis:

DSGraph.h updated: 1.16 -> 1.17

---
Log message:

Add another copy ctor form


---
Diffs of the changes:

Index: llvm/include/llvm/Analysis/DSGraph.h
diff -u llvm/include/llvm/Analysis/DSGraph.h:1.16 llvm/include/llvm/Analysis/DSGraph.h:1.17
--- llvm/include/llvm/Analysis/DSGraph.h:1.16	Mon Oct 21 10:03:35 2002
+++ llvm/include/llvm/Analysis/DSGraph.h	Mon Oct 21 10:32:32 2002
@@ -473,7 +473,12 @@
 public:
   DSGraph() : Func(0) {}           // Create a new, empty, DSGraph.
   DSGraph(Function &F);            // Compute the local DSGraph
-  DSGraph(const DSGraph &DSG);     // Copy ctor
+
+  // Copy ctor - If you want to capture the node mapping between the source and
+  // destination graph, you may optionally do this by specifying a map to record
+  // this into.
+  DSGraph(const DSGraph &DSG);
+  DSGraph(const DSGraph &DSG, std::map<const DSNode*, DSNode*> &BUNodeMapTy);
   ~DSGraph();
 
   bool hasFunction() const { return Func != 0; }





More information about the llvm-commits mailing list