Fix misc warnings. Patch by Joe Abbey.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 18 Oct 2011 03:17:34 +0000 (03:17 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 18 Oct 2011 03:17:34 +0000 (03:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142332 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelDAGToDAG.cpp
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/Mips/MipsISelLowering.cpp

index 5ee009c04c5b4aba72bdb962954cf5dbe6640014..ca777bd8c3362b3c059103d2cca2bf5476530c5b 100644 (file)
@@ -2316,7 +2316,6 @@ SDNode *ARMDAGToDAGISel::SelectCMOVOp(SDNode *N) {
 SDNode *ARMDAGToDAGISel::SelectABSOp(SDNode *N){
   SDValue XORSrc0 = N->getOperand(0);
   SDValue XORSrc1 = N->getOperand(1);
-  DebugLoc DL = N->getDebugLoc();
   EVT VT = N->getValueType(0);
 
   if (DisableARMIntABS)
index d03a52574932b9f9bc67859bcdb0bb9d29c101a2..39ed4dd08380dee72fe9be82c2880d5b624181ed 100644 (file)
@@ -1345,6 +1345,7 @@ def t2STRB_PRE  : T2Ipreldst<0, 0b00, 0, 1, (outs GPRnopc:$Rn_wb),
                         "$addr.base = $Rn_wb,@earlyclobber $Rn_wb", []> {
   let AsmMatchConverter = "cvtStWriteBackRegT2AddrModeImm8";
 }
+} // mayStore = 1, neverHasSideEffects = 1
 
 def t2STR_POST : T2Ipostldst<0, 0b10, 0, 0, (outs GPRnopc:$Rn_wb),
                             (ins rGPR:$Rt, addr_offset_none:$Rn,
@@ -1399,7 +1400,6 @@ def t2STRH_preidx: t2PseudoInst<(outs GPRnopc:$Rn_wb),
       [(set GPRnopc:$Rn_wb,
             (pre_truncsti16 rGPR:$Rt, GPRnopc:$Rn, t2am_imm8_offset:$offset))]>;
 }
-} // mayStore = 1, neverHasSideEffects = 1
 
 // STRT, STRBT, STRHT all have offset mode (PUW=0b110) and are for disassembly
 // only.
index 405428062611335beaa5c219a4cd3951ba5031e2..5271332d84217d4d6f38996b40b41b525f7d37ae 100644 (file)
@@ -788,8 +788,6 @@ static MachineBasicBlock* ExpandCondMov(MachineInstr *MI, MachineBasicBlock *BB,
 MachineBasicBlock *
 MipsTargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
                                                 MachineBasicBlock *BB) const {
-  DebugLoc dl = MI->getDebugLoc();
-
   switch (MI->getOpcode()) {
   default:
     assert(false && "Unexpected instr type to insert");