add an accessor.
authorChris Lattner <sabre@nondot.org>
Thu, 15 Jul 2010 05:14:01 +0000 (05:14 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 15 Jul 2010 05:14:01 +0000 (05:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108408 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Value.h

index 16b62077867318220e6829bb7a5ed2972e287f2f..cfb4422a43b77b68705e5bb66f8f6b0ff2a56ab4 100644 (file)
@@ -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.