diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-22 17:43:22 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-22 17:43:22 +0000 |
commit | e54abc90fe9942ef3902040a7ac475ce0c369dc9 (patch) | |
tree | c76031cf9bdfac5f7ac7f46d5360b7d8675c12c0 /include/llvm/Bitcode | |
parent | dbe77cfa0bcae10d91fbdbf118a97ec212afc88e (diff) | |
download | external_llvm-e54abc90fe9942ef3902040a7ac475ce0c369dc9.zip external_llvm-e54abc90fe9942ef3902040a7ac475ce0c369dc9.tar.gz external_llvm-e54abc90fe9942ef3902040a7ac475ce0c369dc9.tar.bz2 |
Introduce MetadataBase, a base class for MDString and MDNode.
Derive MDString directly from MetadataBase.
Introduce new bitcode block to hold metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bitcode')
-rw-r--r-- | include/llvm/Bitcode/LLVMBitCodes.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Bitcode/LLVMBitCodes.h b/include/llvm/Bitcode/LLVMBitCodes.h index 753d0ff..6847ac9 100644 --- a/include/llvm/Bitcode/LLVMBitCodes.h +++ b/include/llvm/Bitcode/LLVMBitCodes.h @@ -33,7 +33,8 @@ namespace bitc { CONSTANTS_BLOCK_ID, FUNCTION_BLOCK_ID, TYPE_SYMTAB_BLOCK_ID, - VALUE_SYMTAB_BLOCK_ID + VALUE_SYMTAB_BLOCK_ID, + METADATA_BLOCK_ID }; @@ -106,6 +107,9 @@ namespace bitc { VST_CODE_BBENTRY = 2 // VST_BBENTRY: [bbid, namechar x N] }; + enum MetadataCodes { + METADATA_STRING = 1 // MDString: [values] + }; // The constants block (CONSTANTS_BLOCK_ID) describes emission for each // constant and maintains an implicit current type value. enum ConstantsCodes { @@ -128,7 +132,6 @@ namespace bitc { CST_CODE_CE_CMP = 17, // CE_CMP: [opty, opval, opval, pred] CST_CODE_INLINEASM = 18, // INLINEASM: [sideeffect,asmstr,conststr] CST_CODE_CE_SHUFVEC_EX = 19, // SHUFVEC_EX: [opty, opval, opval, opval] - CST_CODE_MDSTRING = 20, // MDSTRING: [values] CST_CODE_MDNODE = 21 // MDNODE: [n x (type num, value num)] }; |