diff options
Diffstat (limited to 'include/llvm/Analysis/DSNode.h')
-rw-r--r-- | include/llvm/Analysis/DSNode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DSNode.h b/include/llvm/Analysis/DSNode.h index 2b01ec5..43d33bc 100644 --- a/include/llvm/Analysis/DSNode.h +++ b/include/llvm/Analysis/DSNode.h @@ -98,6 +98,10 @@ public: /// const std::vector<DSNodeHandle*> &getReferrers() const { return Referrers; } + /// hasNoReferrers - Return true if nothing is pointing to this node at all. + /// + bool hasNoReferrers() const { return Referrers.empty(); } + /// isModified - Return true if this node may be modified in this context /// bool isModified() const { return (NodeType & Modified) != 0; } |