Use DSNodeHandle for persistent maps

llvm-svn: 4623
This commit is contained in:
Chris Lattner 2002-11-08 05:03:37 +00:00
parent a075a5801b
commit 05788d4b82
2 changed files with 3 additions and 3 deletions

View 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

View 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;