diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2014-03-06 12:03:36 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2014-03-06 12:03:36 +0000 |
commit | b4d67b593e917c53f570540ad950e52873bd0aa4 (patch) | |
tree | a276530296feddb63f0bfcb904c1b65b42290603 /llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmBackend.cpp | |
parent | 69bd9ca91cc678ba7da002d6cbb0269d57d8decd (diff) | |
download | bcm5719-llvm-b4d67b593e917c53f570540ad950e52873bd0aa4.tar.gz bcm5719-llvm-b4d67b593e917c53f570540ad950e52873bd0aa4.zip |
[SystemZ] Remove "virtual" from override methods
Also fix a couple of cases where "override" was missing. No behavioural
change intended.
llvm-svn: 203110
Diffstat (limited to 'llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmBackend.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmBackend.cpp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmBackend.cpp b/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmBackend.cpp index da1838345cb..047a9764380 100644 --- a/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmBackend.cpp +++ b/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmBackend.cpp @@ -43,28 +43,25 @@ public: : OSABI(osABI) {} // Override MCAsmBackend - virtual unsigned getNumFixupKinds() const override { + unsigned getNumFixupKinds() const override { return SystemZ::NumTargetFixupKinds; } - virtual const MCFixupKindInfo & - getFixupKindInfo(MCFixupKind Kind) const override; - virtual void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, - uint64_t Value) const override; - virtual bool mayNeedRelaxation(const MCInst &Inst) const override { + const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const override; + void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, + uint64_t Value) const override; + bool mayNeedRelaxation(const MCInst &Inst) const override { return false; } - virtual bool fixupNeedsRelaxation(const MCFixup &Fixup, - uint64_t Value, - const MCRelaxableFragment *Fragment, - const MCAsmLayout &Layout) const override { + bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, + const MCRelaxableFragment *Fragment, + const MCAsmLayout &Layout) const override { return false; } - virtual void relaxInstruction(const MCInst &Inst, - MCInst &Res) const override { + void relaxInstruction(const MCInst &Inst, MCInst &Res) const override { llvm_unreachable("SystemZ does do not have assembler relaxation"); } - virtual bool writeNopData(uint64_t Count, MCObjectWriter *OW) const override; - virtual MCObjectWriter *createObjectWriter(raw_ostream &OS) const override { + bool writeNopData(uint64_t Count, MCObjectWriter *OW) const override; + MCObjectWriter *createObjectWriter(raw_ostream &OS) const override { return createSystemZObjectWriter(OS, OSABI); } }; |