From ce662b0ee9788620385d12af2e049261efaf720d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 1 Apr 2002 00:12:36 +0000 Subject: [PATCH] Shadow nodes don't need to know their explicit parent, they just need to know what type to be. llvm-svn: 2080 --- include/llvm/Analysis/DataStructure.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h index edb0ac5d109..3dce04321ab 100644 --- a/include/llvm/Analysis/DataStructure.h +++ b/include/llvm/Analysis/DataStructure.h @@ -343,13 +343,12 @@ private: // class ShadowDSNode : public DSNode { friend class FunctionDSGraph; - DSNode *Parent; Module *Mod; ShadowDSNode *ShadowParent; // Nonnull if this is a synthesized node... std::vector > SynthNodes; bool CriticalNode; public: - ShadowDSNode(DSNode *Parent, Module *M, bool Critical = false); + ShadowDSNode(const Type *Ty, Module *M, bool Critical = false); virtual std::string getCaption() const; // synthesizeNode - Create a new shadow node that is to be linked into this @@ -376,7 +375,7 @@ protected: if (ShadowParent) return new ShadowDSNode(getType(), Mod, ShadowParent); else - return new ShadowDSNode(Parent, Mod, CriticalNode); + return new ShadowDSNode(getType(), Mod, CriticalNode); } };