diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-28 21:56:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-28 21:56:42 +0000 |
commit | 2769e6ca92332224eef7dcae8bd4d8fe804578ec (patch) | |
tree | 4fc5b88a657f3b1fa95654831266e9d16a9bf9b9 | |
parent | 607411bfbb6a6e2a5def32066722e6a655dfe01d (diff) | |
download | external_llvm-2769e6ca92332224eef7dcae8bd4d8fe804578ec.zip external_llvm-2769e6ca92332224eef7dcae8bd4d8fe804578ec.tar.gz external_llvm-2769e6ca92332224eef7dcae8bd4d8fe804578ec.tar.bz2 |
Add new 'isComplete' method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6943 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/DSNode.h | 1 | ||||
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSNode.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DSNode.h b/include/llvm/Analysis/DSNode.h index 6d23830..7d91918 100644 --- a/include/llvm/Analysis/DSNode.h +++ b/include/llvm/Analysis/DSNode.h @@ -248,6 +248,7 @@ public: bool isRead() const { return NodeType & Read; } bool isIncomplete() const { return NodeType & Incomplete; } + bool isComplete() const { return !isIncomplete(); } bool isDeadNode() const { return NodeType & DEAD; } DSNode *setAllocaNodeMarker() { NodeType |= AllocaNode; return this; } diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index 6d23830..7d91918 100644 --- a/include/llvm/Analysis/DataStructure/DSNode.h +++ b/include/llvm/Analysis/DataStructure/DSNode.h @@ -248,6 +248,7 @@ public: bool isRead() const { return NodeType & Read; } bool isIncomplete() const { return NodeType & Incomplete; } + bool isComplete() const { return !isIncomplete(); } bool isDeadNode() const { return NodeType & DEAD; } DSNode *setAllocaNodeMarker() { NodeType |= AllocaNode; return this; } |