From 1ad25b605c9a0384998a63d72042a7a3caf83912 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 15 Jul 2010 05:14:01 +0000 Subject: [PATCH] add an accessor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108408 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Value.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 16b62077867..cfb4422a43b 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.