Use DSNodeHandle for persistent maps
authorChris Lattner <sabre@nondot.org>
Fri, 8 Nov 2002 05:03:37 +0000 (05:03 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 Nov 2002 05:03:37 +0000 (05:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4623 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSGraph.h
include/llvm/Analysis/DSNode.h
include/llvm/Analysis/DataStructure/DSGraph.h
include/llvm/Analysis/DataStructure/DSNode.h

index 66a4e6835e0ccb1e3f0c2940af8ab8effd84b798..9b283d382755a8229ee092f3d2f0d22d03ba5d15 100644 (file)
@@ -43,7 +43,7 @@ public:
   // 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 @@ public:
   //
   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 346188da88e54d92c69c61667604ea3b2c5bdda3..2b01ec595cbb6b6104331c26f4ff50b91f6b1115 100644 (file)
@@ -198,7 +198,7 @@ public:
 
   /// 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;
index 66a4e6835e0ccb1e3f0c2940af8ab8effd84b798..9b283d382755a8229ee092f3d2f0d22d03ba5d15 100644 (file)
@@ -43,7 +43,7 @@ public:
   // 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 @@ public:
   //
   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 346188da88e54d92c69c61667604ea3b2c5bdda3..2b01ec595cbb6b6104331c26f4ff50b91f6b1115 100644 (file)
@@ -198,7 +198,7 @@ public:
 
   /// 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;