diff options
Diffstat (limited to 'include/llvm/Analysis/DataStructure/DSNode.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSNode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index 0bbc0f7198..ba5328b2b8 100644 --- a/include/llvm/Analysis/DataStructure/DSNode.h +++ b/include/llvm/Analysis/DataStructure/DSNode.h @@ -18,6 +18,7 @@ template<typename BaseType> class DSNodeIterator; // Data structure graph traversal iterator +class TargetData; //===----------------------------------------------------------------------===// /// DSNode - Data structure node class @@ -134,6 +135,11 @@ public: DSGraph *getParentGraph() const { return ParentGraph; } void setParentGraph(DSGraph *G) { ParentGraph = G; } + + /// getTargetData - Get the target data object used to construct this node. + /// + const TargetData &getTargetData() const; + /// getForwardNode - This method returns the node that this node is forwarded /// to, if any. DSNode *getForwardNode() const { return ForwardNH.getNode(); } |