From b6ee10d9e52931622b94176c4861754683b82682 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 25 Apr 2015 17:25:13 +0000 Subject: [PATCH] [ARM] Simplify code. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235803 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp index c2e1b2a3045..1c5a7951876 100644 --- a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp +++ b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp @@ -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(""); + assert(Imm <= 3 && "illegal ror immediate!"); + O << ", ror " << markup(""); } void ARMInstPrinter::printModImmOperand(const MCInst *MI, unsigned OpNum,