Update bcanalyzer to handle new USELIST_BLOCK/USELIST_CODE_ENTRY.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chad Rosier 2011-12-07 21:45:13 +00:00
parent cbbb09687f
commit 837b4e4a44

View File

@ -108,6 +108,7 @@ static const char *GetBlockName(unsigned BlockID,
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";
case bitc::USELIST_BLOCK_ID: return "USELIST_BLOCK_ID";
}
}
@ -264,6 +265,11 @@ static const char *GetCodeName(unsigned CodeID, unsigned BlockID,
case bitc::METADATA_FN_NODE: return "METADATA_FN_NODE";
case bitc::METADATA_NAMED_NODE: return "METADATA_NAMED_NODE";
}
case bitc::USELIST_BLOCK_ID:
switch(CodeID) {
default:return 0;
case bitc::USELIST_CODE_ENTRY: return "USELIST_CODE_ENTRY";
}
}
}