From 96748161c54b5e4e07e2d8bd7b113cea7a1631f2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 15 Jul 2010 05:14:01 +0000 Subject: [PATCH] add an accessor. llvm-svn: 108408 --- llvm/include/llvm/Value.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/include/llvm/Value.h b/llvm/include/llvm/Value.h index 16b620778673..cfb4422a43b7 100644 --- a/llvm/include/llvm/Value.h +++ b/llvm/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.