[llvm-commits] [llvm] r108408 - /llvm/trunk/include/llvm/Value.h

Chris Lattner sabre at nondot.org
Wed Jul 14 22:14:01 PDT 2010


Author: lattner
Date: Thu Jul 15 00:14:01 2010
New Revision: 108408

URL: http://llvm.org/viewvc/llvm-project?rev=108408&view=rev
Log:
add an accessor.

Modified:
    llvm/trunk/include/llvm/Value.h

Modified: llvm/trunk/include/llvm/Value.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Value.h?rev=108408&r1=108407&r2=108408&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Value.h (original)
+++ llvm/trunk/include/llvm/Value.h Thu Jul 15 00:14:01 2010
@@ -266,6 +266,10 @@
     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.





More information about the llvm-commits mailing list