summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-27 00:52:57 +0000
committerChris Lattner <sabre@nondot.org>2002-03-27 00:52:57 +0000
commit42393b3e513610591d57a188e3691f91f24c2a9a (patch)
treec2621c4f54947bc05979b04af7eb4fa01291ff62
parentbf03a52b3ba53dad6d838f26867e35b46ecf7863 (diff)
downloadbcm5719-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.h5
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);
OpenPOWER on IntegriCloud