[X86] Explicitly list all X86 instruction forms in switch statement so its easier to detect when one is missing. NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279420 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2016-08-22 07:38:30 +00:00
parent f631b7acf6
commit d30b1a1614

View File

@ -841,7 +841,16 @@ void RecognizableInstr::emitDecodePath(DisassemblerTables &tables) const {
}
switch (Form) {
default:
default: llvm_unreachable("Invalid form!");
case X86Local::Pseudo: llvm_unreachable("Pseudo should not be emitted!");
case X86Local::RawFrm:
case X86Local::AddRegFrm:
case X86Local::RawFrmMemOffs:
case X86Local::RawFrmSrc:
case X86Local::RawFrmDst:
case X86Local::RawFrmDstSrc:
case X86Local::RawFrmImm8:
case X86Local::RawFrmImm16:
filter = new DumbFilter();
break;
case X86Local::MRMDestReg: case X86Local::MRMDestMem: