summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips
diff options
context:
space:
mode:
authorSjoerd Meijer <sjoerd.meijer@arm.com>2016-07-29 08:16:16 +0000
committerSjoerd Meijer <sjoerd.meijer@arm.com>2016-07-29 08:16:16 +0000
commit0eb96ed0de8ca918a0365ce8ba743d7633089fc1 (patch)
tree8084d74fc1c1e22abb8bea0136f0a82654389551 /llvm/lib/Target/Mips
parentf605c198c9ae45951dff98224d92593c1596186b (diff)
downloadbcm5719-llvm-0eb96ed0de8ca918a0365ce8ba743d7633089fc1.tar.gz
bcm5719-llvm-0eb96ed0de8ca918a0365ce8ba743d7633089fc1.zip
TargetInstrInfo: add virtual function getInstSizeInBytes
This adds a target hook getInstSizeInBytes to TargetInstrInfo that a lot of subclasses already implement. Differential Revision: https://reviews.llvm.org/D22885 llvm-svn: 277126
Diffstat (limited to 'llvm/lib/Target/Mips')
-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 bb0b306b199..876e9f96c06 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 override;
void storeRegToStackSlot(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MBBI,
OpenPOWER on IntegriCloud