summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsInstrInfo.h
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-12 01:47:02 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-12 01:47:02 +0000
commitfdd30c620da25a98c7cae6e413577ac7534fa9e0 (patch)
tree3e334f5e0640bee952704090f7bd32fc048c80ad /llvm/lib/Target/Mips/MipsInstrInfo.h
parent185ab5b030bab551669df712ce410aa087471d86 (diff)
downloadbcm5719-llvm-fdd30c620da25a98c7cae6e413577ac7534fa9e0.tar.gz
bcm5719-llvm-fdd30c620da25a98c7cae6e413577ac7534fa9e0.zip
Mips: Avoid implicit iterator conversions, NFC
Avoid implicit conversions from MachineInstrBundleIterator to MachineInstr* in the Mips backend, mainly by preferring MachineInstr& over MachineInstr* when a pointer isn't nullable and using range-based for loops. llvm-svn: 275141
Diffstat (limited to 'llvm/lib/Target/Mips/MipsInstrInfo.h')
-rw-r--r--llvm/lib/Target/Mips/MipsInstrInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.h b/llvm/lib/Target/Mips/MipsInstrInfo.h
index 4a773eeb74a..ae20fe1e039 100644
--- a/llvm/lib/Target/Mips/MipsInstrInfo.h
+++ b/llvm/lib/Target/Mips/MipsInstrInfo.h
@@ -92,7 +92,7 @@ public:
virtual unsigned getOppositeBranchOpc(unsigned Opc) const = 0;
/// Return the number of bytes of code the specified instruction may be.
- unsigned GetInstSizeInBytes(const MachineInstr *MI) const;
+ unsigned GetInstSizeInBytes(const MachineInstr &MI) const;
void storeRegToStackSlot(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MBBI,
OpenPOWER on IntegriCloud