mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Add LLVM_OVERRIDE to a few declarations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201022 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -38,40 +38,40 @@ class TargetLoweringObjectFileELF : public TargetLoweringObjectFile {
|
|||||||
public:
|
public:
|
||||||
virtual ~TargetLoweringObjectFileELF() {}
|
virtual ~TargetLoweringObjectFileELF() {}
|
||||||
|
|
||||||
virtual void emitPersonalityValue(MCStreamer &Streamer,
|
void emitPersonalityValue(MCStreamer &Streamer, const TargetMachine &TM,
|
||||||
const TargetMachine &TM,
|
const MCSymbol *Sym) const LLVM_OVERRIDE;
|
||||||
const MCSymbol *Sym) const;
|
|
||||||
|
|
||||||
/// Given a constant with the SectionKind, return a section that it should be
|
/// Given a constant with the SectionKind, return a section that it should be
|
||||||
/// placed in.
|
/// 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 *
|
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
||||||
getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
|
SectionKind Kind, Mangler *Mang,
|
||||||
Mangler *Mang, const TargetMachine &TM) const;
|
const TargetMachine &TM) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
virtual const MCSection *
|
|
||||||
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
|
||||||
Mangler *Mang, const TargetMachine &TM) const;
|
|
||||||
|
|
||||||
/// Return an MCExpr to use for a reference to the specified type info global
|
/// Return an MCExpr to use for a reference to the specified type info global
|
||||||
/// variable from exception handling information.
|
/// variable from exception handling information.
|
||||||
virtual const MCExpr *
|
const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
||||||
getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
MachineModuleInfo *MMI,
|
||||||
MachineModuleInfo *MMI, unsigned Encoding,
|
unsigned Encoding,
|
||||||
MCStreamer &Streamer) const;
|
MCStreamer &Streamer) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
// The symbol that gets passed to .cfi_personality.
|
// The symbol that gets passed to .cfi_personality.
|
||||||
virtual MCSymbol *
|
MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
||||||
getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
MachineModuleInfo *MMI) const LLVM_OVERRIDE;
|
||||||
MachineModuleInfo *MMI) const;
|
|
||||||
|
|
||||||
void InitializeELF(bool UseInitArray_);
|
void InitializeELF(bool UseInitArray_);
|
||||||
virtual const MCSection *
|
const MCSection *getStaticCtorSection(unsigned Priority = 65535) const
|
||||||
getStaticCtorSection(unsigned Priority = 65535) const;
|
LLVM_OVERRIDE;
|
||||||
virtual const MCSection *
|
const MCSection *getStaticDtorSection(unsigned Priority = 65535) const
|
||||||
getStaticDtorSection(unsigned Priority = 65535) const;
|
LLVM_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -82,39 +82,42 @@ public:
|
|||||||
|
|
||||||
/// Extract the dependent library name from a linker option string. Returns
|
/// Extract the dependent library name from a linker option string. Returns
|
||||||
/// StringRef() if the option does not specify a library.
|
/// 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.
|
/// Emit the module flags that specify the garbage collection information.
|
||||||
virtual void emitModuleFlags(MCStreamer &Streamer,
|
void emitModuleFlags(MCStreamer &Streamer,
|
||||||
ArrayRef<Module::ModuleFlagEntry> ModuleFlags,
|
ArrayRef<Module::ModuleFlagEntry> ModuleFlags,
|
||||||
Mangler *Mang, const TargetMachine &TM) const;
|
Mangler *Mang, const TargetMachine &TM) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
virtual const MCSection *
|
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
||||||
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
SectionKind Kind, Mangler *Mang,
|
||||||
Mangler *Mang, const TargetMachine &TM) const;
|
const TargetMachine &TM) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
virtual const MCSection *
|
const MCSection *getExplicitSectionGlobal(const GlobalValue *GV,
|
||||||
getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
|
SectionKind Kind, Mangler *Mang,
|
||||||
Mangler *Mang, const TargetMachine &TM) const;
|
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
|
/// This hook allows targets to selectively decide not to emit the
|
||||||
/// UsedDirective for some symbols in llvm.used.
|
/// UsedDirective for some symbols in llvm.used.
|
||||||
/// FIXME: REMOVE this (rdar://7071300)
|
/// FIXME: REMOVE this (rdar://7071300)
|
||||||
virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV,
|
bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, Mangler *Mang) const
|
||||||
Mangler *) const;
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
/// The mach-o version of this method defaults to returning a stub reference.
|
/// The mach-o version of this method defaults to returning a stub reference.
|
||||||
virtual const MCExpr *
|
const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
||||||
getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
MachineModuleInfo *MMI,
|
||||||
MachineModuleInfo *MMI, unsigned Encoding,
|
unsigned Encoding,
|
||||||
MCStreamer &Streamer) const;
|
MCStreamer &Streamer) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
// The symbol that gets passed to .cfi_personality.
|
// The symbol that gets passed to .cfi_personality.
|
||||||
virtual MCSymbol *
|
MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
||||||
getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
MachineModuleInfo *MMI) const LLVM_OVERRIDE;
|
||||||
MachineModuleInfo *MMI) const;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -123,23 +126,26 @@ class TargetLoweringObjectFileCOFF : public TargetLoweringObjectFile {
|
|||||||
public:
|
public:
|
||||||
virtual ~TargetLoweringObjectFileCOFF() {}
|
virtual ~TargetLoweringObjectFileCOFF() {}
|
||||||
|
|
||||||
virtual const MCSection *
|
const MCSection *getExplicitSectionGlobal(const GlobalValue *GV,
|
||||||
getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
|
SectionKind Kind, Mangler *Mang,
|
||||||
Mangler *Mang, const TargetMachine &TM) const;
|
const TargetMachine &TM) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
virtual const MCSection *
|
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
||||||
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
SectionKind Kind, Mangler *Mang,
|
||||||
Mangler *Mang, const TargetMachine &TM) const;
|
const TargetMachine &TM) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
/// Extract the dependent library name from a linker option string. Returns
|
/// Extract the dependent library name from a linker option string. Returns
|
||||||
/// StringRef() if the option does not specify a library.
|
/// 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
|
/// Emit Obj-C garbage collection and linker options. Only linker option
|
||||||
/// emission is implemented for COFF.
|
/// emission is implemented for COFF.
|
||||||
virtual void emitModuleFlags(MCStreamer &Streamer,
|
void emitModuleFlags(MCStreamer &Streamer,
|
||||||
ArrayRef<Module::ModuleFlagEntry> ModuleFlags,
|
ArrayRef<Module::ModuleFlagEntry> ModuleFlags,
|
||||||
Mangler *Mang, const TargetMachine &TM) const;
|
Mangler *Mang, const TargetMachine &TM) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace llvm
|
} // end namespace llvm
|
||||||
|
@@ -26,15 +26,17 @@ public:
|
|||||||
AttributesSection(NULL)
|
AttributesSection(NULL)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
void Initialize(MCContext &Ctx, const TargetMachine &TM) LLVM_OVERRIDE;
|
||||||
|
|
||||||
const MCExpr *
|
const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
||||||
getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
MachineModuleInfo *MMI,
|
||||||
MachineModuleInfo *MMI, unsigned Encoding,
|
unsigned Encoding,
|
||||||
MCStreamer &Streamer) const;
|
MCStreamer &Streamer) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
/// \brief Describe a TLS variable address within debug info.
|
/// \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
|
} // end namespace llvm
|
||||||
|
@@ -19,7 +19,7 @@ namespace llvm {
|
|||||||
const MCSectionELF *SmallDataSection;
|
const MCSectionELF *SmallDataSection;
|
||||||
const MCSectionELF *SmallBSSSection;
|
const MCSectionELF *SmallBSSSection;
|
||||||
public:
|
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
|
/// IsGlobalInSmallSection - Return true if this global address should be
|
||||||
/// placed into small data/bss section.
|
/// placed into small data/bss section.
|
||||||
@@ -30,10 +30,10 @@ namespace llvm {
|
|||||||
const TargetMachine &TM) const;
|
const TargetMachine &TM) const;
|
||||||
|
|
||||||
bool IsSmallDataEnabled () const;
|
bool IsSmallDataEnabled () const;
|
||||||
const MCSection* SelectSectionForGlobal(const GlobalValue *GV,
|
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
||||||
SectionKind Kind,
|
SectionKind Kind, Mangler *Mang,
|
||||||
Mangler *Mang,
|
const TargetMachine &TM) const
|
||||||
const TargetMachine &TM) const;
|
LLVM_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
@@ -19,7 +19,7 @@ namespace llvm {
|
|||||||
const MCSection *SmallBSSSection;
|
const MCSection *SmallBSSSection;
|
||||||
public:
|
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
|
/// IsGlobalInSmallSection - Return true if this global address should be
|
||||||
@@ -30,9 +30,9 @@ namespace llvm {
|
|||||||
const TargetMachine &TM) const;
|
const TargetMachine &TM) const;
|
||||||
|
|
||||||
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
||||||
SectionKind Kind,
|
SectionKind Kind, Mangler *Mang,
|
||||||
Mangler *Mang,
|
const TargetMachine &TM) const
|
||||||
const TargetMachine &TM) const;
|
LLVM_OVERRIDE;
|
||||||
};
|
};
|
||||||
} // end namespace llvm
|
} // end namespace llvm
|
||||||
|
|
||||||
|
@@ -46,7 +46,7 @@ public:
|
|||||||
|
|
||||||
virtual ~NVPTXTargetObjectFile();
|
virtual ~NVPTXTargetObjectFile();
|
||||||
|
|
||||||
virtual void Initialize(MCContext &ctx, const TargetMachine &TM) {
|
void Initialize(MCContext &ctx, const TargetMachine &TM) LLVM_OVERRIDE {
|
||||||
TargetLoweringObjectFile::Initialize(ctx, TM);
|
TargetLoweringObjectFile::Initialize(ctx, TM);
|
||||||
TextSection = new NVPTXSection(MCSection::SV_ELF, SectionKind::getText());
|
TextSection = new NVPTXSection(MCSection::SV_ELF, SectionKind::getText());
|
||||||
DataSection =
|
DataSection =
|
||||||
@@ -87,13 +87,14 @@ public:
|
|||||||
new NVPTXSection(MCSection::SV_ELF, SectionKind::getMetadata());
|
new NVPTXSection(MCSection::SV_ELF, SectionKind::getMetadata());
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual const MCSection *getSectionForConstant(SectionKind Kind) const {
|
const MCSection *getSectionForConstant(SectionKind Kind) const LLVM_OVERRIDE {
|
||||||
return ReadOnlySection;
|
return ReadOnlySection;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual const MCSection *
|
const MCSection *getExplicitSectionGlobal(const GlobalValue *GV,
|
||||||
getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
|
SectionKind Kind, Mangler *Mang,
|
||||||
Mangler *Mang, const TargetMachine &TM) const {
|
const TargetMachine &TM) const
|
||||||
|
LLVM_OVERRIDE {
|
||||||
return DataSection;
|
return DataSection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -20,14 +20,16 @@ namespace llvm {
|
|||||||
/// 64-bit PowerPC Linux.
|
/// 64-bit PowerPC Linux.
|
||||||
class PPC64LinuxTargetObjectFile : public TargetLoweringObjectFileELF {
|
class PPC64LinuxTargetObjectFile : public TargetLoweringObjectFileELF {
|
||||||
|
|
||||||
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
void Initialize(MCContext &Ctx, const TargetMachine &TM) LLVM_OVERRIDE;
|
||||||
|
|
||||||
virtual const MCSection *
|
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
||||||
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
SectionKind Kind, Mangler *Mang,
|
||||||
Mangler *Mang, const TargetMachine &TM) const;
|
const TargetMachine &TM) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
/// \brief Describe a TLS variable address within debug info.
|
/// \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
|
} // end namespace llvm
|
||||||
|
@@ -23,10 +23,11 @@ public:
|
|||||||
TargetLoweringObjectFileELF()
|
TargetLoweringObjectFileELF()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
const MCExpr *
|
const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
||||||
getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
MachineModuleInfo *MMI,
|
||||||
MachineModuleInfo *MMI, unsigned Encoding,
|
unsigned Encoding,
|
||||||
MCStreamer &Streamer) const;
|
MCStreamer &Streamer) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace llvm
|
} // end namespace llvm
|
||||||
|
@@ -20,31 +20,34 @@ namespace llvm {
|
|||||||
/// x86-64.
|
/// x86-64.
|
||||||
class X86_64MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
|
class X86_64MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
|
||||||
public:
|
public:
|
||||||
virtual const MCExpr *
|
const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
||||||
getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
MachineModuleInfo *MMI,
|
||||||
MachineModuleInfo *MMI, unsigned Encoding,
|
unsigned Encoding,
|
||||||
MCStreamer &Streamer) const;
|
MCStreamer &Streamer) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
// getCFIPersonalitySymbol - The symbol that gets passed to
|
// getCFIPersonalitySymbol - The symbol that gets passed to
|
||||||
// .cfi_personality.
|
// .cfi_personality.
|
||||||
virtual MCSymbol *
|
MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
||||||
getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
MachineModuleInfo *MMI) const
|
||||||
MachineModuleInfo *MMI) const;
|
LLVM_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// X86LinuxTargetObjectFile - This implementation is used for linux x86
|
/// X86LinuxTargetObjectFile - This implementation is used for linux x86
|
||||||
/// and x86-64.
|
/// and x86-64.
|
||||||
class X86LinuxTargetObjectFile : public TargetLoweringObjectFileELF {
|
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.
|
/// \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.
|
/// \brief This implementation is used for Windows targets on x86 and x86-64.
|
||||||
class X86WindowsTargetObjectFile : public TargetLoweringObjectFileCOFF {
|
class X86WindowsTargetObjectFile : public TargetLoweringObjectFileCOFF {
|
||||||
virtual const MCExpr *getExecutableRelativeSymbol(const ConstantExpr *CE,
|
const MCExpr *getExecutableRelativeSymbol(const ConstantExpr *CE,
|
||||||
Mangler *Mang) const;
|
Mangler *Mang) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace llvm
|
} // end namespace llvm
|
||||||
|
@@ -23,15 +23,18 @@ static const unsigned CodeModelLargeSize = 256;
|
|||||||
public:
|
public:
|
||||||
void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
||||||
|
|
||||||
virtual const MCSection *
|
const MCSection *getExplicitSectionGlobal(const GlobalValue *GV,
|
||||||
getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
|
SectionKind Kind, Mangler *Mang,
|
||||||
Mangler *Mang, const TargetMachine &TM) const;
|
const TargetMachine &TM) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
virtual const MCSection *
|
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
||||||
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
SectionKind Kind, Mangler *Mang,
|
||||||
Mangler *Mang, const TargetMachine &TM) const;
|
const TargetMachine &TM) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
|
|
||||||
virtual const MCSection *getSectionForConstant(SectionKind Kind) const;
|
const MCSection *getSectionForConstant(SectionKind Kind) const
|
||||||
|
LLVM_OVERRIDE;
|
||||||
};
|
};
|
||||||
} // end namespace llvm
|
} // end namespace llvm
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user