Reverting r229831 due to multiple ARM/PPC/MIPS build-bot failures.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229841 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Kuperstein
2015-02-19 11:38:11 +00:00
parent 05be69f1e3
commit 2b5910a767
33 changed files with 328 additions and 356 deletions

View File

@@ -80,19 +80,20 @@ X86GenericDisassembler::X86GenericDisassembler(
MCContext &Ctx,
std::unique_ptr<const MCInstrInfo> MII)
: MCDisassembler(STI, Ctx), MII(std::move(MII)) {
const FeatureBitset &FB = STI.getFeatureBits();
if (FB[X86::Mode16Bit]) {
switch (STI.getFeatureBits() &
(X86::Mode16Bit | X86::Mode32Bit | X86::Mode64Bit)) {
case X86::Mode16Bit:
fMode = MODE_16BIT;
return;
} else if (FB[X86::Mode32Bit]) {
break;
case X86::Mode32Bit:
fMode = MODE_32BIT;
return;
} else if (FB[X86::Mode64Bit]) {
break;
case X86::Mode64Bit:
fMode = MODE_64BIT;
return;
break;
default:
llvm_unreachable("Invalid CPU mode");
}
llvm_unreachable("Invalid CPU mode");
}
struct Region {