[ARM] Simplify code. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235803 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2015-04-25 17:25:13 +00:00
parent 4b86b0db83
commit b6ee10d9e5

View File

@ -1379,21 +1379,8 @@ void ARMInstPrinter::printRotImmOperand(const MCInst *MI, unsigned OpNum,
unsigned Imm = MI->getOperand(OpNum).getImm();
if (Imm == 0)
return;
O << ", ror " << markup("<imm:") << "#";
switch (Imm) {
default:
assert(0 && "illegal ror immediate!");
case 1:
O << "8";
break;
case 2:
O << "16";
break;
case 3:
O << "24";
break;
}
O << markup(">");
assert(Imm <= 3 && "illegal ror immediate!");
O << ", ror " << markup("<imm:") << "#" << 8 * Imm << markup(">");
}
void ARMInstPrinter::printModImmOperand(const MCInst *MI, unsigned OpNum,