From 26f8a40b510cd68b7bd8aa1e596f37d52fecc008 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 27 Mar 2002 00:52:57 +0000 Subject: Allow isa(..) Simplification routines return true on change git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1996 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DataStructure.h | 5 +++-- include/llvm/Analysis/DataStructure/DataStructure.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h index d845303..55029b2 100644 --- a/include/llvm/Analysis/DataStructure.h +++ b/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 &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); diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h index d845303..55029b2 100644 --- a/include/llvm/Analysis/DataStructure/DataStructure.h +++ b/include/llvm/Analysis/DataStructure/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 &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); -- cgit v1.1