add support for new codes/block

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36726 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-05-04 03:01:41 +00:00
parent dea4205556
commit cd5b7d7c9d

View File

@ -80,6 +80,7 @@ static const char *GetBlockName(unsigned BlockID) {
switch (BlockID) { switch (BlockID) {
default: return 0; default: return 0;
case bitc::MODULE_BLOCK_ID: return "MODULE_BLOCK"; 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::TYPE_BLOCK_ID: return "TYPE_BLOCK";
case bitc::CONSTANTS_BLOCK_ID: return "CONSTANTS_BLOCK"; case bitc::CONSTANTS_BLOCK_ID: return "CONSTANTS_BLOCK";
case bitc::FUNCTION_BLOCK_ID: return "FUNCTION_BLOCK"; case bitc::FUNCTION_BLOCK_ID: return "FUNCTION_BLOCK";
@ -109,11 +110,15 @@ static const char *GetCodeName(unsigned CodeID, unsigned BlockID) {
case bitc::MODULE_CODE_ALIAS: return "ALIAS"; case bitc::MODULE_CODE_ALIAS: return "ALIAS";
case bitc::MODULE_CODE_PURGEVALS: return "PURGEVALS"; case bitc::MODULE_CODE_PURGEVALS: return "PURGEVALS";
} }
case bitc::PARAMATTR_BLOCK_ID:
switch (CodeID) {
default: return 0;
case bitc::PARAMATTR_CODE_ENTRY: return "ENTRY";
}
case bitc::TYPE_BLOCK_ID: case bitc::TYPE_BLOCK_ID:
switch (CodeID) { switch (CodeID) {
default: return 0; default: return 0;
case bitc::TYPE_CODE_NUMENTRY: return "NUMENTRY"; case bitc::TYPE_CODE_NUMENTRY: return "NUMENTRY";
case bitc::TYPE_CODE_META: return "META";
case bitc::TYPE_CODE_VOID: return "VOID"; case bitc::TYPE_CODE_VOID: return "VOID";
case bitc::TYPE_CODE_FLOAT: return "FLOAT"; case bitc::TYPE_CODE_FLOAT: return "FLOAT";
case bitc::TYPE_CODE_DOUBLE: return "DOUBLE"; case bitc::TYPE_CODE_DOUBLE: return "DOUBLE";
@ -185,6 +190,7 @@ static const char *GetCodeName(unsigned CodeID, unsigned BlockID) {
switch (CodeID) { switch (CodeID) {
default: return 0; default: return 0;
case bitc::VST_CODE_ENTRY: return "ENTRY"; case bitc::VST_CODE_ENTRY: return "ENTRY";
case bitc::VST_CODE_BBENTRY: return "BBENTRY";
} }
} }
} }