diff options
author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2016-07-29 08:16:16 +0000 |
---|---|---|
committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2016-07-29 08:16:16 +0000 |
commit | c46479857ebd6abff7a21a062d1e1c56232a4cbe (patch) | |
tree | 376f196123df6bbfe622f0ced780d4fc799ded6f /lib/Target/MSP430 | |
parent | f7938da3bf792c214161da7730187d54a5e78220 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430')
-rw-r--r-- | lib/Target/MSP430/MSP430InstrInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/MSP430/MSP430InstrInfo.h b/lib/Target/MSP430/MSP430InstrInfo.h index 40a81cc6421..1db438c8d67 100644 --- a/lib/Target/MSP430/MSP430InstrInfo.h +++ b/lib/Target/MSP430/MSP430InstrInfo.h @@ -68,7 +68,7 @@ public: const TargetRegisterClass *RC, const TargetRegisterInfo *TRI) const override; - unsigned getInstSizeInBytes(const MachineInstr &MI) const; + unsigned getInstSizeInBytes(const MachineInstr &MI) const override; // Branch folding goodness bool |