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:
Rafael Espindola
2014-02-08 06:07:27 +00:00
parent 6f1819f2e6
commit 3f2e9e5e79
9 changed files with 117 additions and 99 deletions

View File

@@ -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;
}