diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-26 22:21:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-26 22:21:57 +0000 |
commit | f9a3ec86c138177c7d9b3a9d119e6d2247d14bd8 (patch) | |
tree | 15986c2b097351545c57cf4bd2e8c3b4e3d97cd7 /include/llvm/Bitcode/BitCodes.h | |
parent | 7919b966a8fd8f98346216e79df6f4722693be22 (diff) | |
download | external_llvm-f9a3ec86c138177c7d9b3a9d119e6d2247d14bd8.tar.gz external_llvm-f9a3ec86c138177c7d9b3a9d119e6d2247d14bd8.tar.bz2 external_llvm-f9a3ec86c138177c7d9b3a9d119e6d2247d14bd8.zip |
Add two new record types to the blockinfo block:
BLOCKNAME and SETRECORDNAME. This allows a bitcode
file to be self describing with pretty names for
records and blocks in addition to numbers. This
enhances llvm-bcanalyzer to use this to print prettily.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bitcode/BitCodes.h')
-rw-r--r-- | include/llvm/Bitcode/BitCodes.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Bitcode/BitCodes.h b/include/llvm/Bitcode/BitCodes.h index faf3fc73e8..449dc35d7d 100644 --- a/include/llvm/Bitcode/BitCodes.h +++ b/include/llvm/Bitcode/BitCodes.h @@ -66,10 +66,12 @@ namespace bitc { /// BlockInfoCodes - The blockinfo block contains metadata about user-defined /// blocks. enum BlockInfoCodes { - BLOCKINFO_CODE_SETBID = 1 // SETBID: [blockid#] // DEFINE_ABBREV has magic semantics here, applying to the current SETBID'd // block, instead of the BlockInfo block. - // BLOCKNAME: give string name to block, if desired. + + BLOCKINFO_CODE_SETBID = 1, // SETBID: [blockid#] + BLOCKINFO_CODE_BLOCKNAME = 2, // BLOCKNAME: [name] + BLOCKINFO_CODE_SETRECORDNAME = 3 // BLOCKINFO_CODE_SETRECORDNAME: [id, name] }; } // End bitc namespace |