Tidy up. 80 column.

llvm-svn: 144538
This commit is contained in:
Jim Grosbach 2011-11-14 17:52:47 +00:00
parent 0ffbcc959d
commit ee201faeac
1 changed files with 8 additions and 5 deletions

View File

@ -1101,7 +1101,8 @@ public:
void addRegShiftedRegOperands(MCInst &Inst, unsigned N) const { void addRegShiftedRegOperands(MCInst &Inst, unsigned N) const {
assert(N == 3 && "Invalid number of operands!"); assert(N == 3 && "Invalid number of operands!");
assert(isRegShiftedReg() && "addRegShiftedRegOperands() on non RegShiftedReg!"); assert(isRegShiftedReg() &&
"addRegShiftedRegOperands() on non RegShiftedReg!");
Inst.addOperand(MCOperand::CreateReg(RegShiftedReg.SrcReg)); Inst.addOperand(MCOperand::CreateReg(RegShiftedReg.SrcReg));
Inst.addOperand(MCOperand::CreateReg(RegShiftedReg.ShiftReg)); Inst.addOperand(MCOperand::CreateReg(RegShiftedReg.ShiftReg));
Inst.addOperand(MCOperand::CreateImm( Inst.addOperand(MCOperand::CreateImm(
@ -1110,7 +1111,8 @@ public:
void addRegShiftedImmOperands(MCInst &Inst, unsigned N) const { void addRegShiftedImmOperands(MCInst &Inst, unsigned N) const {
assert(N == 2 && "Invalid number of operands!"); assert(N == 2 && "Invalid number of operands!");
assert(isRegShiftedImm() && "addRegShiftedImmOperands() on non RegShiftedImm!"); assert(isRegShiftedImm() &&
"addRegShiftedImmOperands() on non RegShiftedImm!");
Inst.addOperand(MCOperand::CreateReg(RegShiftedImm.SrcReg)); Inst.addOperand(MCOperand::CreateReg(RegShiftedImm.SrcReg));
Inst.addOperand(MCOperand::CreateImm( Inst.addOperand(MCOperand::CreateImm(
ARM_AM::getSORegOpc(RegShiftedImm.ShiftTy, RegShiftedImm.ShiftImm))); ARM_AM::getSORegOpc(RegShiftedImm.ShiftTy, RegShiftedImm.ShiftImm)));
@ -1426,7 +1428,8 @@ public:
void addMemRegOffsetOperands(MCInst &Inst, unsigned N) const { void addMemRegOffsetOperands(MCInst &Inst, unsigned N) const {
assert(N == 3 && "Invalid number of operands!"); assert(N == 3 && "Invalid number of operands!");
unsigned Val = ARM_AM::getAM2Opc(Memory.isNegative ? ARM_AM::sub : ARM_AM::add, unsigned Val =
ARM_AM::getAM2Opc(Memory.isNegative ? ARM_AM::sub : ARM_AM::add,
Memory.ShiftImm, Memory.ShiftType); Memory.ShiftImm, Memory.ShiftType);
Inst.addOperand(MCOperand::CreateReg(Memory.BaseRegNum)); Inst.addOperand(MCOperand::CreateReg(Memory.BaseRegNum));
Inst.addOperand(MCOperand::CreateReg(Memory.OffsetRegNum)); Inst.addOperand(MCOperand::CreateReg(Memory.OffsetRegNum));