mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user