From: Dylan McKay Date: Sat, 19 Nov 2016 01:33:42 +0000 (+0000) Subject: [AVR] Remove a bunch of unused variables X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eeb505257ee95fbc3e19729224ba0423ea777e72;p=llvm [AVR] Remove a bunch of unused variables git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287416 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AVR/AVRAsmPrinter.cpp b/lib/Target/AVR/AVRAsmPrinter.cpp index 90ff6e31f8f..4afdd3a0ec0 100644 --- a/lib/Target/AVR/AVRAsmPrinter.cpp +++ b/lib/Target/AVR/AVRAsmPrinter.cpp @@ -107,6 +107,7 @@ bool AVRAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum, unsigned OpFlags = MI->getOperand(OpNum - 1).getImm(); unsigned NumOpRegs = InlineAsm::getNumOperandRegisters(OpFlags); + (void)NumOpRegs; const AVRSubtarget &STI = MF->getSubtarget(); const TargetRegisterInfo &TRI = *STI.getRegisterInfo(); @@ -143,6 +144,7 @@ bool AVRAsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI, } const MachineOperand &MO = MI->getOperand(OpNum); + (void)MO; assert(MO.isReg() && "Unexpected inline asm memory operand"); // TODO: We can look up the alternative name for the register if it's given. diff --git a/lib/Target/AVR/AVRCallingConv.td b/lib/Target/AVR/AVRCallingConv.td index 900439a9b6e..68dbce02706 100644 --- a/lib/Target/AVR/AVRCallingConv.td +++ b/lib/Target/AVR/AVRCallingConv.td @@ -42,13 +42,6 @@ def ArgCC_AVR_Vararg : CallingConv CCAssignToStack<2, 1> ]>; -// Special argument calling convention for -// multiplication runtime functions. -def ArgCC_AVR_BUILTIN_MUL : CallingConv -<[ - CCIfType<[i16], CCAssignToReg<[R27R26,R19R18]>> -]>; - // Special argument calling convention for // division runtime functions. def ArgCC_AVR_BUILTIN_DIV : CallingConv