diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-15 23:09:47 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-15 23:09:47 +0000 |
commit | 670900bb9e9bc798aad9da4150c64841cc59834e (patch) | |
tree | 9b77dbd86c0c26ca5ce86bfa7cad42e23eac39fa /llvm/lib/Target/Mips/MipsInstrInfo.cpp | |
parent | 554357b62362c3dc91115fece2e6b16e68e07851 (diff) | |
download | bcm5719-llvm-670900bb9e9bc798aad9da4150c64841cc59834e.tar.gz bcm5719-llvm-670900bb9e9bc798aad9da4150c64841cc59834e.zip |
Reapply "Mips: Avoid implicit iterator conversions, NFC"
This reverts commit r275562, effectively reapplying r275141. Doug
Gilmore reported that there was an error when bisecting the Mips
buildbot failure, and that r275141 was not to blame after all. Here is
the green build:
https://dmz-portal.mips.com/bb/builders/LLVM%20with%20integrated%20assembler%20and%20fPIC%20and%20-O0/builds/803
llvm-svn: 275643
Diffstat (limited to 'llvm/lib/Target/Mips/MipsInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsInstrInfo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.cpp b/llvm/lib/Target/Mips/MipsInstrInfo.cpp index 48d50f23a52..800d834e0ab 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.cpp +++ b/llvm/lib/Target/Mips/MipsInstrInfo.cpp @@ -378,19 +378,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(); } } |