diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-03-27 00:52:57 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-03-27 00:52:57 +0000 |
| commit | 42393b3e513610591d57a188e3691f91f24c2a9a (patch) | |
| tree | c2621c4f54947bc05979b04af7eb4fa01291ff62 | |
| parent | bf03a52b3ba53dad6d838f26867e35b46ecf7863 (diff) | |
| download | bcm5719-llvm-42393b3e513610591d57a188e3691f91f24c2a9a.tar.gz bcm5719-llvm-42393b3e513610591d57a188e3691f91f24c2a9a.zip | |
Allow isa<DSNode>(..)
Simplification routines return true on change
llvm-svn: 1996
| -rw-r--r-- | llvm/include/llvm/Analysis/DataStructure.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/Analysis/DataStructure.h b/llvm/include/llvm/Analysis/DataStructure.h index d84530313e8..55029b26945 100644 --- a/llvm/include/llvm/Analysis/DataStructure.h +++ b/llvm/include/llvm/Analysis/DataStructure.h @@ -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); |

