Enable 'enum value not handled' warning on MSVC, fix issues

* Mostly we add an explicit default: break but in some cases we add explicit
  cases and/or error messages.
This commit is contained in:
baldurk
2019-12-17 18:00:24 +00:00
parent 6f58c680c7
commit 2c80a7206b
32 changed files with 143 additions and 83 deletions
@@ -246,6 +246,9 @@ static rdcstr getName(uint32_t parentBlock, const LLVMBC::BlockOrRecord &block)
// GetCodeName in BitcodeAnalyzer.cpp
switch(KnownBlocks(parentBlock))
{
case KnownBlocks::BLOCKINFO:
case KnownBlocks::TYPE_SYMTAB_BLOCK:
case KnownBlocks::METADATA_ATTACHMENT: break;
case KnownBlocks::MODULE_BLOCK:
{
ModuleRecord code = ModuleRecord(block.id);