diff options
-rw-r--r-- | include/llvm/Analysis/DataStructure.h | 5 | ||||
-rw-r--r-- | include/llvm/Analysis/DataStructure/DataStructure.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h index d84530313e..55029b2694 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<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); diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h index d84530313e..55029b2694 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<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); |