diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-15 05:14:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-15 05:14:01 +0000 |
commit | 1ad25b605c9a0384998a63d72042a7a3caf83912 (patch) | |
tree | c7b9fc2eaf806631bed2de4d194580f5ee1cd2d2 /include | |
parent | e2f93131fb78cf5650db9ca78b4aec3cc45f00be (diff) |
add an accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Value.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 16b6207786..cfb4422a43 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -266,6 +266,10 @@ public: SubclassOptionalData &= V->SubclassOptionalData; } + /// hasValueHandle - Return true if there is a value handle associated with + /// this value. + bool hasValueHandle() const { return HasValueHandle; } + // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const Value *) { return true; // Values are always values. |