diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-08 06:07:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-08 06:07:27 +0000 |
commit | 107050158612f7367dfff375245e415946d91a49 (patch) | |
tree | dff0f44d10ae67db64fb8dc3fce2866cb3867e64 /llvm/lib/Target | |
parent | 74cf6ff5e523fa972af797a7a05f9d9b3dddfb5a (diff) | |
download | bcm5719-llvm-107050158612f7367dfff375245e415946d91a49.tar.gz bcm5719-llvm-107050158612f7367dfff375245e415946d91a49.zip |
Add LLVM_OVERRIDE to a few declarations.
llvm-svn: 201022
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/ARM/ARMTargetObjectFile.h | 14 | ||||
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h | 10 | ||||
-rw-r--r-- | llvm/lib/Target/Mips/MipsTargetObjectFile.h | 8 | ||||
-rw-r--r-- | llvm/lib/Target/NVPTX/NVPTXTargetObjectFile.h | 11 | ||||
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetObjectFile.h | 12 | ||||
-rw-r--r-- | llvm/lib/Target/Sparc/SparcTargetObjectFile.h | 9 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86TargetObjectFile.h | 25 | ||||
-rw-r--r-- | llvm/lib/Target/XCore/XCoreTargetObjectFile.h | 21 |
8 files changed, 61 insertions, 49 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetObjectFile.h b/llvm/lib/Target/ARM/ARMTargetObjectFile.h index 9767045ace9..b3460c491bc 100644 --- a/llvm/lib/Target/ARM/ARMTargetObjectFile.h +++ b/llvm/lib/Target/ARM/ARMTargetObjectFile.h @@ -26,15 +26,17 @@ public: AttributesSection(NULL) {} - virtual void Initialize(MCContext &Ctx, const TargetMachine &TM); + void Initialize(MCContext &Ctx, const TargetMachine &TM) LLVM_OVERRIDE; - 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; /// \brief Describe a TLS variable address within debug info. - virtual const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const; + const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const + LLVM_OVERRIDE; }; } // end namespace llvm diff --git a/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h b/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h index 41f6792ca8e..73fa47975b4 100644 --- a/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h +++ b/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h @@ -19,7 +19,7 @@ namespace llvm { const MCSectionELF *SmallDataSection; const MCSectionELF *SmallBSSSection; public: - virtual void Initialize(MCContext &Ctx, const TargetMachine &TM); + void Initialize(MCContext &Ctx, const TargetMachine &TM) LLVM_OVERRIDE; /// IsGlobalInSmallSection - Return true if this global address should be /// placed into small data/bss section. @@ -30,10 +30,10 @@ namespace llvm { const TargetMachine &TM) const; bool IsSmallDataEnabled () const; - 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; }; } // namespace llvm diff --git a/llvm/lib/Target/Mips/MipsTargetObjectFile.h b/llvm/lib/Target/Mips/MipsTargetObjectFile.h index 658a49a6d81..11d70db5ba8 100644 --- a/llvm/lib/Target/Mips/MipsTargetObjectFile.h +++ b/llvm/lib/Target/Mips/MipsTargetObjectFile.h @@ -19,7 +19,7 @@ namespace llvm { const MCSection *SmallBSSSection; public: - void Initialize(MCContext &Ctx, const TargetMachine &TM); + void Initialize(MCContext &Ctx, const TargetMachine &TM) LLVM_OVERRIDE; /// IsGlobalInSmallSection - Return true if this global address should be @@ -30,9 +30,9 @@ namespace llvm { const TargetMachine &TM) const; const MCSection *SelectSectionForGlobal(const GlobalValue *GV, - SectionKind Kind, - Mangler *Mang, - const TargetMachine &TM) const; + SectionKind Kind, Mangler *Mang, + const TargetMachine &TM) const + LLVM_OVERRIDE; }; } // end namespace llvm diff --git a/llvm/lib/Target/NVPTX/NVPTXTargetObjectFile.h b/llvm/lib/Target/NVPTX/NVPTXTargetObjectFile.h index 2a7394b79ae..31a3c1bd951 100644 --- a/llvm/lib/Target/NVPTX/NVPTXTargetObjectFile.h +++ b/llvm/lib/Target/NVPTX/NVPTXTargetObjectFile.h @@ -46,7 +46,7 @@ public: virtual ~NVPTXTargetObjectFile(); - virtual void Initialize(MCContext &ctx, const TargetMachine &TM) { + void Initialize(MCContext &ctx, const TargetMachine &TM) LLVM_OVERRIDE { TargetLoweringObjectFile::Initialize(ctx, TM); TextSection = new NVPTXSection(MCSection::SV_ELF, SectionKind::getText()); DataSection = @@ -87,13 +87,14 @@ public: new NVPTXSection(MCSection::SV_ELF, SectionKind::getMetadata()); } - virtual const MCSection *getSectionForConstant(SectionKind Kind) const { + const MCSection *getSectionForConstant(SectionKind Kind) const LLVM_OVERRIDE { return ReadOnlySection; } - 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 { return DataSection; } diff --git a/llvm/lib/Target/PowerPC/PPCTargetObjectFile.h b/llvm/lib/Target/PowerPC/PPCTargetObjectFile.h index 262c52213d2..8042a790f7a 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetObjectFile.h +++ b/llvm/lib/Target/PowerPC/PPCTargetObjectFile.h @@ -20,14 +20,16 @@ namespace llvm { /// 64-bit PowerPC Linux. class PPC64LinuxTargetObjectFile : public TargetLoweringObjectFileELF { - virtual void Initialize(MCContext &Ctx, const TargetMachine &TM); + void Initialize(MCContext &Ctx, const TargetMachine &TM) 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; /// \brief Describe a TLS variable address within debug info. - virtual const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const; + const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const + LLVM_OVERRIDE; }; } // end namespace llvm diff --git a/llvm/lib/Target/Sparc/SparcTargetObjectFile.h b/llvm/lib/Target/Sparc/SparcTargetObjectFile.h index 7cf850de160..5884e5d97ae 100644 --- a/llvm/lib/Target/Sparc/SparcTargetObjectFile.h +++ b/llvm/lib/Target/Sparc/SparcTargetObjectFile.h @@ -23,10 +23,11 @@ public: TargetLoweringObjectFileELF() {} - 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; }; } // end namespace llvm diff --git a/llvm/lib/Target/X86/X86TargetObjectFile.h b/llvm/lib/Target/X86/X86TargetObjectFile.h index 5fcd0dfba67..77046e2b421 100644 --- a/llvm/lib/Target/X86/X86TargetObjectFile.h +++ b/llvm/lib/Target/X86/X86TargetObjectFile.h @@ -20,31 +20,34 @@ namespace llvm { /// x86-64. class X86_64MachoTargetObjectFile : public TargetLoweringObjectFileMachO { public: - 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; // getCFIPersonalitySymbol - 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; }; /// X86LinuxTargetObjectFile - This implementation is used for linux x86 /// and x86-64. class X86LinuxTargetObjectFile : public TargetLoweringObjectFileELF { - virtual void Initialize(MCContext &Ctx, const TargetMachine &TM); + void Initialize(MCContext &Ctx, const TargetMachine &TM) LLVM_OVERRIDE; /// \brief Describe a TLS variable address within debug info. - virtual const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const; + const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const + LLVM_OVERRIDE; }; /// \brief This implementation is used for Windows targets on x86 and x86-64. class X86WindowsTargetObjectFile : public TargetLoweringObjectFileCOFF { - virtual const MCExpr *getExecutableRelativeSymbol(const ConstantExpr *CE, - Mangler *Mang) const; + const MCExpr *getExecutableRelativeSymbol(const ConstantExpr *CE, + Mangler *Mang) const + LLVM_OVERRIDE; }; } // end namespace llvm diff --git a/llvm/lib/Target/XCore/XCoreTargetObjectFile.h b/llvm/lib/Target/XCore/XCoreTargetObjectFile.h index bf9798d5085..fee84256b88 100644 --- a/llvm/lib/Target/XCore/XCoreTargetObjectFile.h +++ b/llvm/lib/Target/XCore/XCoreTargetObjectFile.h @@ -23,15 +23,18 @@ static const unsigned CodeModelLargeSize = 256; public: void Initialize(MCContext &Ctx, const TargetMachine &TM); - 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; - - virtual const MCSection *getSectionForConstant(SectionKind Kind) const; + const MCSection *getExplicitSectionGlobal(const GlobalValue *GV, + SectionKind Kind, Mangler *Mang, + const TargetMachine &TM) const + LLVM_OVERRIDE; + + const MCSection *SelectSectionForGlobal(const GlobalValue *GV, + SectionKind Kind, Mangler *Mang, + const TargetMachine &TM) const + LLVM_OVERRIDE; + + const MCSection *getSectionForConstant(SectionKind Kind) const + LLVM_OVERRIDE; }; } // end namespace llvm |