From db5e6663044fe40f6479abf7efafd604ef8bdc42 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Fri, 15 Jul 2016 13:54:20 +0000 Subject: Revert r275141 - Mips: Avoid implicit iterator conversions, NFC It appears to have caused some failures in our buildbots. llvm-svn: 275562 --- llvm/lib/Target/Mips/MipsInstrInfo.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'llvm/lib/Target/Mips/MipsInstrInfo.cpp') diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.cpp b/llvm/lib/Target/Mips/MipsInstrInfo.cpp index af018c6e56e..46587a3b1ba 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.cpp +++ b/llvm/lib/Target/Mips/MipsInstrInfo.cpp @@ -377,19 +377,19 @@ bool MipsInstrInfo::HasForbiddenSlot(const MachineInstr &MI) const { } /// Return the number of bytes of code the specified instruction may be. -unsigned MipsInstrInfo::GetInstSizeInBytes(const MachineInstr &MI) const { - switch (MI.getOpcode()) { +unsigned MipsInstrInfo::GetInstSizeInBytes(const MachineInstr *MI) const { + switch (MI->getOpcode()) { default: - return MI.getDesc().getSize(); + return MI->getDesc().getSize(); case TargetOpcode::INLINEASM: { // Inline Asm: Variable size. - const MachineFunction *MF = MI.getParent()->getParent(); - const char *AsmStr = MI.getOperand(0).getSymbolName(); + const MachineFunction *MF = MI->getParent()->getParent(); + const char *AsmStr = MI->getOperand(0).getSymbolName(); return getInlineAsmLength(AsmStr, *MF->getTarget().getMCAsmInfo()); } case Mips::CONSTPOOL_ENTRY: // If this machine instr is a constant pool entry, its size is recorded as // operand #2. - return MI.getOperand(2).getImm(); + return MI->getOperand(2).getImm(); } } -- cgit v1.2.3