From 0eb96ed0de8ca918a0365ce8ba743d7633089fc1 Mon Sep 17 00:00:00 2001 From: Sjoerd Meijer Date: Fri, 29 Jul 2016 08:16:16 +0000 Subject: 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 --- llvm/lib/Target/PowerPC/PPCInstrInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.h') 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; -- cgit v1.2.3