diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-04-04 07:22:01 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-04-04 07:22:01 +0000 |
commit | 21cc4460efa104e8591b05a90f20130291614344 (patch) | |
tree | 6f5a7d6d7f4693fe0b16635fc34ac7c99174331d /include/llvm/Value.h | |
parent | 2cd1b777d7ba88dc4c4c072ec58dca9f96a8b4c2 (diff) | |
download | llvm-21cc4460efa104e8591b05a90f20130291614344.tar.gz llvm-21cc4460efa104e8591b05a90f20130291614344.tar.bz2 llvm-21cc4460efa104e8591b05a90f20130291614344.tar.xz |
Add support for embedded metadata to LLVM. This introduces two new types of
Constant, MDString and MDNode which can only be used by globals with a name
that starts with "llvm." or as arguments to a function with the same naming
restriction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r-- | include/llvm/Value.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 85b8a185c8..a38d8cb8d9 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -203,13 +203,15 @@ public: ConstantStructVal, // This is an instance of ConstantStruct ConstantVectorVal, // This is an instance of ConstantVector ConstantPointerNullVal, // This is an instance of ConstantPointerNull + MDStringVal, // This is an instance of MDString + MDNodeVal, // This is an instance of MDNode InlineAsmVal, // This is an instance of InlineAsm PseudoSourceValueVal, // This is an instance of PseudoSourceValue InstructionVal, // This is an instance of Instruction // Markers: ConstantFirstVal = FunctionVal, - ConstantLastVal = ConstantPointerNullVal + ConstantLastVal = MDNodeVal }; /// getValueID - Return an ID for the concrete type of this object. This is |