diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-07-15 13:54:20 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-07-15 13:54:20 +0000 |
commit | db5e6663044fe40f6479abf7efafd604ef8bdc42 (patch) | |
tree | 1b3e489f20c684e5669bcca2a5a8b828c6cb39a5 /llvm/lib/Target/Mips/MipsInstrInfo.cpp | |
parent | 4177480aadb312dcd79772554d7653c4ba0b7080 (diff) | |
download | bcm5719-llvm-db5e6663044fe40f6479abf7efafd604ef8bdc42.tar.gz bcm5719-llvm-db5e6663044fe40f6479abf7efafd604ef8bdc42.zip |
Revert r275141 - Mips: Avoid implicit iterator conversions, NFC
It appears to have caused some failures in our buildbots.
llvm-svn: 275562
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 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(); } } |