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

Chris Lattner lattner at cs.uiuc.edu
Thu Nov 7 23:04:01 PST 2002


Changes in directory llvm/include/llvm/Analysis:

DSGraph.h updated: 1.29 -> 1.30
DSNode.h updated: 1.9 -> 1.10

---
Log message:

Use DSNodeHandle for persistent maps


---
Diffs of the changes:

Index: llvm/include/llvm/Analysis/DSGraph.h
diff -u llvm/include/llvm/Analysis/DSGraph.h:1.29 llvm/include/llvm/Analysis/DSGraph.h:1.30
--- llvm/include/llvm/Analysis/DSGraph.h:1.29	Thu Nov  7 01:05:56 2002
+++ llvm/include/llvm/Analysis/DSGraph.h	Thu Nov  7 23:03:37 2002
@@ -43,7 +43,7 @@
   // 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*> &BUNodeMap);
+  DSGraph(const DSGraph &DSG, std::map<const DSNode*, DSNodeHandle> &NodeMap);
   ~DSGraph();
 
   bool hasFunction() const { return Func != 0; }
@@ -138,7 +138,7 @@
   //
   DSNodeHandle cloneInto(const DSGraph &G,
                          std::map<Value*, DSNodeHandle> &OldValMap,
-                         std::map<const DSNode*, DSNode*> &OldNodeMap,
+                         std::map<const DSNode*, DSNodeHandle> &OldNodeMap,
                          AllocaBit StripAllocas = KeepAllocaBit);
 
   /// mergeInGraph - The method is used for merging graphs together.  If the


Index: llvm/include/llvm/Analysis/DSNode.h
diff -u llvm/include/llvm/Analysis/DSNode.h:1.9 llvm/include/llvm/Analysis/DSNode.h:1.10
--- llvm/include/llvm/Analysis/DSNode.h:1.9	Thu Nov  7 19:22:26 2002
+++ llvm/include/llvm/Analysis/DSNode.h	Thu Nov  7 23:03:37 2002
@@ -198,7 +198,7 @@
 
   /// remapLinks - Change all of the Links in the current node according to the
   /// specified mapping.
-  void remapLinks(std::map<const DSNode*, DSNode*> &OldNodeMap);
+  void remapLinks(std::map<const DSNode*, DSNodeHandle> &OldNodeMap);
 
 private:
   friend class DSNodeHandle;





More information about the llvm-commits mailing list