From: Chris Lattner Date: Thu, 15 Jul 2010 05:14:01 +0000 (+0000) Subject: add an accessor. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1ad25b605c9a0384998a63d72042a7a3caf83912;p=oota-llvm.git add an accessor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108408 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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.