llvm.org GIT mirror llvm / b6ee10d
[ARM] Simplify code. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235803 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 5 years ago
1 changed file(s) with 2 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
13781378 unsigned Imm = MI->getOperand(OpNum).getImm();
13791379 if (Imm == 0)
13801380 return;
1381 O << ", ror " << markup("
1382 switch (Imm) {
1383 default:
1384 assert(0 && "illegal ror immediate!");
1385 case 1:
1386 O << "8";
1387 break;
1388 case 2:
1389 O << "16";
1390 break;
1391 case 3:
1392 O << "24";
1393 break;
1394 }
1395 O << markup(">");
1381 assert(Imm <= 3 && "illegal ror immediate!");
1382 O << ", ror " << markup("");
13961383 }
13971384
13981385 void ARMInstPrinter::printModImmOperand(const MCInst *MI, unsigned OpNum,