diff options
author | Devang Patel <dpatel@apple.com> | 2009-09-18 19:26:43 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-09-18 19:26:43 +0000 |
commit | e8e0213cc3daa2d0457c22e4c12e6973f21fc942 (patch) | |
tree | 011f5819548ed35e3c31b6abe45e271bf0eb1147 /tools | |
parent | 88d9839d07a6b5a03484d664913de0f2b33d3bff (diff) | |
download | external_llvm-e8e0213cc3daa2d0457c22e4c12e6973f21fc942.zip external_llvm-e8e0213cc3daa2d0457c22e4c12e6973f21fc942.tar.gz external_llvm-e8e0213cc3daa2d0457c22e4c12e6973f21fc942.tar.bz2 |
Write and read metadata attachments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp index ce9c29f..b896910 100644 --- a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp +++ b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp @@ -92,15 +92,16 @@ static const char *GetBlockName(unsigned BlockID, if (CurStreamType != LLVMIRBitstream) return 0; switch (BlockID) { - default: return 0; - case bitc::MODULE_BLOCK_ID: return "MODULE_BLOCK"; - case bitc::PARAMATTR_BLOCK_ID: return "PARAMATTR_BLOCK"; - case bitc::TYPE_BLOCK_ID: return "TYPE_BLOCK"; - case bitc::CONSTANTS_BLOCK_ID: return "CONSTANTS_BLOCK"; - case bitc::FUNCTION_BLOCK_ID: return "FUNCTION_BLOCK"; - case bitc::TYPE_SYMTAB_BLOCK_ID: return "TYPE_SYMTAB"; - case bitc::VALUE_SYMTAB_BLOCK_ID: return "VALUE_SYMTAB"; - case bitc::METADATA_BLOCK_ID: return "METADATA_BLOCK"; + default: return 0; + case bitc::MODULE_BLOCK_ID: return "MODULE_BLOCK"; + case bitc::PARAMATTR_BLOCK_ID: return "PARAMATTR_BLOCK"; + case bitc::TYPE_BLOCK_ID: return "TYPE_BLOCK"; + case bitc::CONSTANTS_BLOCK_ID: return "CONSTANTS_BLOCK"; + case bitc::FUNCTION_BLOCK_ID: return "FUNCTION_BLOCK"; + case bitc::TYPE_SYMTAB_BLOCK_ID: return "TYPE_SYMTAB"; + case bitc::VALUE_SYMTAB_BLOCK_ID: return "VALUE_SYMTAB"; + case bitc::METADATA_BLOCK_ID: return "METADATA_BLOCK"; + case bitc::METADATA_ATTACHMENT_ID: return "METADATA_ATTACHMENT_BLOCK"; } } @@ -245,6 +246,11 @@ static const char *GetCodeName(unsigned CodeID, unsigned BlockID, case bitc::VST_CODE_ENTRY: return "ENTRY"; case bitc::VST_CODE_BBENTRY: return "BBENTRY"; } + case bitc::METADATA_ATTACHMENT_ID: + switch(CodeID) { + default:return 0; + case bitc::METADATA_ATTACHMENT: return "METADATA_ATTACHMENT"; + } case bitc::METADATA_BLOCK_ID: switch(CodeID) { default:return 0; @@ -252,6 +258,7 @@ static const char *GetCodeName(unsigned CodeID, unsigned BlockID, case bitc::METADATA_NODE: return "MDNODE"; case bitc::METADATA_NAME: return "METADATA_NAME"; case bitc::METADATA_NAMED_NODE: return "NAMEDMDNODE"; + case bitc::METADATA_KIND: return "METADATA_KIND"; } } } |