From 3f2e9e5e79687c5589cef23cb93badabdec6736f Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 8 Feb 2014 06:07:27 +0000 Subject: Add LLVM_OVERRIDE to a few declarations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201022 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../llvm/CodeGen/TargetLoweringObjectFileImpl.h | 110 +++++++++++---------- 1 file changed, 58 insertions(+), 52 deletions(-) (limited to 'include') diff --git a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h index 2e582ec051..9660a065a0 100644 --- a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h +++ b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h @@ -38,40 +38,40 @@ class TargetLoweringObjectFileELF : public TargetLoweringObjectFile { public: virtual ~TargetLoweringObjectFileELF() {} - virtual void emitPersonalityValue(MCStreamer &Streamer, - const TargetMachine &TM, - const MCSymbol *Sym) const; + void emitPersonalityValue(MCStreamer &Streamer, const TargetMachine &TM, + const MCSymbol *Sym) const LLVM_OVERRIDE; /// Given a constant with the SectionKind, return a section that it should be /// placed in. - virtual const MCSection *getSectionForConstant(SectionKind Kind) const; + const MCSection *getSectionForConstant(SectionKind Kind) const LLVM_OVERRIDE; + const MCSection *getExplicitSectionGlobal(const GlobalValue *GV, + SectionKind Kind, Mangler *Mang, + const TargetMachine &TM) const + LLVM_OVERRIDE; - virtual const MCSection * - getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, - Mangler *Mang, const TargetMachine &TM) const; - - virtual const MCSection * - SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, - Mangler *Mang, const TargetMachine &TM) const; + const MCSection *SelectSectionForGlobal(const GlobalValue *GV, + SectionKind Kind, Mangler *Mang, + const TargetMachine &TM) const + LLVM_OVERRIDE; /// Return an MCExpr to use for a reference to the specified type info global /// variable from exception handling information. - virtual const MCExpr * - getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, - MachineModuleInfo *MMI, unsigned Encoding, - MCStreamer &Streamer) const; + const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, + MachineModuleInfo *MMI, + unsigned Encoding, + MCStreamer &Streamer) const + LLVM_OVERRIDE; // The symbol that gets passed to .cfi_personality. - virtual MCSymbol * - getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, - MachineModuleInfo *MMI) const; + MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, + MachineModuleInfo *MMI) const LLVM_OVERRIDE; void InitializeELF(bool UseInitArray_); - virtual const MCSection * - getStaticCtorSection(unsigned Priority = 65535) const; - virtual const MCSection * - getStaticDtorSection(unsigned Priority = 65535) const; + const MCSection *getStaticCtorSection(unsigned Priority = 65535) const + LLVM_OVERRIDE; + const MCSection *getStaticDtorSection(unsigned Priority = 65535) const + LLVM_OVERRIDE; }; @@ -82,39 +82,42 @@ public: /// Extract the dependent library name from a linker option string. Returns /// StringRef() if the option does not specify a library. - virtual StringRef getDepLibFromLinkerOpt(StringRef LinkerOption) const; + StringRef getDepLibFromLinkerOpt(StringRef LinkerOption) const LLVM_OVERRIDE; /// Emit the module flags that specify the garbage collection information. - virtual void emitModuleFlags(MCStreamer &Streamer, - ArrayRef ModuleFlags, - Mangler *Mang, const TargetMachine &TM) const; + void emitModuleFlags(MCStreamer &Streamer, + ArrayRef ModuleFlags, + Mangler *Mang, const TargetMachine &TM) const + LLVM_OVERRIDE; - virtual const MCSection * - SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, - Mangler *Mang, const TargetMachine &TM) const; + const MCSection *SelectSectionForGlobal(const GlobalValue *GV, + SectionKind Kind, Mangler *Mang, + const TargetMachine &TM) const + LLVM_OVERRIDE; - virtual const MCSection * - getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, - Mangler *Mang, const TargetMachine &TM) const; + const MCSection *getExplicitSectionGlobal(const GlobalValue *GV, + SectionKind Kind, Mangler *Mang, + const TargetMachine &TM) const + LLVM_OVERRIDE; - virtual const MCSection *getSectionForConstant(SectionKind Kind) const; + const MCSection *getSectionForConstant(SectionKind Kind) const LLVM_OVERRIDE; /// This hook allows targets to selectively decide not to emit the /// UsedDirective for some symbols in llvm.used. /// FIXME: REMOVE this (rdar://7071300) - virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, - Mangler *) const; + bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, Mangler *Mang) const + LLVM_OVERRIDE; /// The mach-o version of this method defaults to returning a stub reference. - virtual const MCExpr * - getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, - MachineModuleInfo *MMI, unsigned Encoding, - MCStreamer &Streamer) const; + const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, + MachineModuleInfo *MMI, + unsigned Encoding, + MCStreamer &Streamer) const + LLVM_OVERRIDE; // The symbol that gets passed to .cfi_personality. - virtual MCSymbol * - getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, - MachineModuleInfo *MMI) const; + MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, + MachineModuleInfo *MMI) const LLVM_OVERRIDE; }; @@ -123,23 +126,26 @@ class TargetLoweringObjectFileCOFF : public TargetLoweringObjectFile { public: virtual ~TargetLoweringObjectFileCOFF() {} - virtual const MCSection * - getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, - Mangler *Mang, const TargetMachine &TM) const; + const MCSection *getExplicitSectionGlobal(const GlobalValue *GV, + SectionKind Kind, Mangler *Mang, + const TargetMachine &TM) const + LLVM_OVERRIDE; - virtual const MCSection * - SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, - Mangler *Mang, const TargetMachine &TM) const; + const MCSection *SelectSectionForGlobal(const GlobalValue *GV, + SectionKind Kind, Mangler *Mang, + const TargetMachine &TM) const + LLVM_OVERRIDE; /// Extract the dependent library name from a linker option string. Returns /// StringRef() if the option does not specify a library. - virtual StringRef getDepLibFromLinkerOpt(StringRef LinkerOption) const; + StringRef getDepLibFromLinkerOpt(StringRef LinkerOption) const LLVM_OVERRIDE; /// Emit Obj-C garbage collection and linker options. Only linker option /// emission is implemented for COFF. - virtual void emitModuleFlags(MCStreamer &Streamer, - ArrayRef ModuleFlags, - Mangler *Mang, const TargetMachine &TM) const; + void emitModuleFlags(MCStreamer &Streamer, + ArrayRef ModuleFlags, + Mangler *Mang, const TargetMachine &TM) const + LLVM_OVERRIDE; }; } // end namespace llvm -- cgit v1.2.3