[AVR] Remove a bunch of unused variables
authorDylan McKay <dylanmckay34@gmail.com>
Sat, 19 Nov 2016 01:33:42 +0000 (01:33 +0000)
committerDylan McKay <dylanmckay34@gmail.com>
Sat, 19 Nov 2016 01:33:42 +0000 (01:33 +0000)
llvm-svn: 287416

llvm/lib/Target/AVR/AVRAsmPrinter.cpp
llvm/lib/Target/AVR/AVRCallingConv.td

index 90ff6e3..4afdd3a 100644 (file)
@@ -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<AVRSubtarget>();
       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.
index 900439a..68dbce0 100644 (file)
@@ -43,13 +43,6 @@ def ArgCC_AVR_Vararg : CallingConv
 ]>;
 
 // 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
 <[