summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.h
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/PowerPC/PPCInstrInfo.h
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/PowerPC/PPCInstrInfo.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.h b/llvm/lib/Target/PowerPC/PPCInstrInfo.h
index b90a89c7810..f7077996aa4 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.h
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.h
@@ -256,7 +256,7 @@ public:
/// GetInstSize - Return the number of bytes of code the specified
/// instruction may be. This returns the maximum number of bytes.
///
- unsigned getInstSizeInBytes(const MachineInstr &MI) const;
+ unsigned getInstSizeInBytes(const MachineInstr &MI) const override;
void getNoopForMachoTarget(MCInst &NopInst) const override;
OpenPOWER on IntegriCloud