aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/DataStructure/DataStructure.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-01 00:12:36 +0000
committerChris Lattner <sabre@nondot.org>2002-04-01 00:12:36 +0000
commitaedcb728050fd002930014088b7a63c6398297c8 (patch)
tree8761ba06fb2d7fbce689a47aeef1f696d69f4579 /include/llvm/Analysis/DataStructure/DataStructure.h
parent0b7c85c06a25f85048cc18225a00f2c634add65f (diff)
Shadow nodes don't need to know their explicit parent, they just need to
know what type to be. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2080 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure/DataStructure.h')
-rw-r--r--include/llvm/Analysis/DataStructure/DataStructure.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h
index edb0ac5d10..3dce04321a 100644
--- a/include/llvm/Analysis/DataStructure/DataStructure.h
+++ b/include/llvm/Analysis/DataStructure/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);
}
};