diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-01 00:12:36 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-01 00:12:36 +0000 |
| commit | 71fc90439b4e4472114a006696ef278174afd119 (patch) | |
| tree | 1857c3389c3ba41ba8d44214febe9b53983243f9 | |
| parent | d63afb418e3409b4fb7d8a34768e8a29f8dfbe8d (diff) | |
| download | bcm5719-llvm-71fc90439b4e4472114a006696ef278174afd119.tar.gz bcm5719-llvm-71fc90439b4e4472114a006696ef278174afd119.zip | |
Shadow nodes don't need to know their explicit parent, they just need to
know what type to be.
llvm-svn: 2080
| -rw-r--r-- | llvm/include/llvm/Analysis/DataStructure.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/include/llvm/Analysis/DataStructure.h b/llvm/include/llvm/Analysis/DataStructure.h index edb0ac5d109..3dce04321ab 100644 --- a/llvm/include/llvm/Analysis/DataStructure.h +++ b/llvm/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<std::pair<const Type *, ShadowDSNode *> > 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); } }; |

