1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Shadow nodes don't need to know their explicit parent, they just need to

know what type to be.

llvm-svn: 2080
This commit is contained in:
Chris Lattner 2002-04-01 00:12:36 +00:00
parent 42145d8a25
commit ce662b0ee9

View File

@ -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);
}
};