Allow isa<DSNode>(..)

Simplification routines return true on change


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1996 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-03-27 00:52:57 +00:00
parent bc132d62d3
commit 26f8a40b51
2 changed files with 6 additions and 4 deletions

View File

@ -153,6 +153,7 @@ public:
FieldLinks.clear();
}
static bool classof(const DSNode *N) { return true; }
protected:
virtual DSNode *cloneImpl() const = 0;
virtual void mapNode(std::map<const DSNode*, DSNode*> &NodeMap,
@ -303,8 +304,8 @@ class FunctionDSGraph {
// as the data structure graph itself.
//
PointerValSet cloneFunctionIntoSelf(const FunctionDSGraph &G, bool ValueMap);
void RemoveUnreachableShadowNodes();
void UnlinkUndistinguishableShadowNodes();
bool RemoveUnreachableShadowNodes();
bool UnlinkUndistinguishableShadowNodes();
public:
FunctionDSGraph(Function *F);
FunctionDSGraph(const FunctionDSGraph &DSG);

View File

@ -153,6 +153,7 @@ public:
FieldLinks.clear();
}
static bool classof(const DSNode *N) { return true; }
protected:
virtual DSNode *cloneImpl() const = 0;
virtual void mapNode(std::map<const DSNode*, DSNode*> &NodeMap,
@ -303,8 +304,8 @@ class FunctionDSGraph {
// as the data structure graph itself.
//
PointerValSet cloneFunctionIntoSelf(const FunctionDSGraph &G, bool ValueMap);
void RemoveUnreachableShadowNodes();
void UnlinkUndistinguishableShadowNodes();
bool RemoveUnreachableShadowNodes();
bool UnlinkUndistinguishableShadowNodes();
public:
FunctionDSGraph(Function *F);
FunctionDSGraph(const FunctionDSGraph &DSG);