aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r--include/llvm/Value.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 7e7b415ffd..b220930c28 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -40,6 +40,7 @@ typedef StringMapEntry<Value*> ValueName;
class raw_ostream;
class AssemblyAnnotationWriter;
class ValueHandleBase;
+class LLVMContext;
//===----------------------------------------------------------------------===//
// Value Class
@@ -101,6 +102,9 @@ public:
///
inline const Type *getType() const { return VTy; }
+ /// All values hold a context through their type.
+ LLVMContext &getContext() const;
+
// All values can potentially be named...
inline bool hasName() const { return Name != 0; }
ValueName *getValueName() const { return Name; }