aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Analysis/DataStructure.h5
-rw-r--r--include/llvm/Analysis/DataStructure/DataStructure.h5
2 files changed, 4 insertions, 6 deletions
diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h
index edb0ac5d10..3dce04321a 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<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);
}
};
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);
}
};