diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-05 07:52:44 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-05 07:52:44 +0000 |
commit | 01394fb9e4d4fcf401e98116c02866d64047008d (patch) | |
tree | acffe20d43eeec66146b7bad4299786b2d2c39a2 /include/llvm/Object | |
parent | c37e6c073436be77e90ef640c0e6627200ba19f7 (diff) | |
download | llvm-01394fb9e4d4fcf401e98116c02866d64047008d.tar.gz llvm-01394fb9e4d4fcf401e98116c02866d64047008d.tar.bz2 llvm-01394fb9e4d4fcf401e98116c02866d64047008d.tar.xz |
[C++11] Add 'override' keyword to virtual methods that override their base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object')
-rw-r--r-- | include/llvm/Object/ELFObjectFile.h | 14 | ||||
-rw-r--r-- | include/llvm/Object/ObjectFile.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index 3c87e529c0..e6752b3d90 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -67,7 +67,7 @@ protected: SymbolRef::Type &Res) const override; error_code getSymbolSection(DataRefImpl Symb, section_iterator &Res) const override; - error_code getSymbolValue(DataRefImpl Symb, uint64_t &Val) const; + error_code getSymbolValue(DataRefImpl Symb, uint64_t &Val) const override; error_code getLibraryNext(DataRefImpl Data, LibraryRef &Result) const override; @@ -77,19 +77,19 @@ protected: error_code getSectionName(DataRefImpl Sec, StringRef &Res) const override; error_code getSectionAddress(DataRefImpl Sec, uint64_t &Res) const override; error_code getSectionSize(DataRefImpl Sec, uint64_t &Res) const override; - error_code getSectionContents(DataRefImpl Sec, StringRef &Res) const; + error_code getSectionContents(DataRefImpl Sec, StringRef &Res) const override; error_code getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const override; error_code isSectionText(DataRefImpl Sec, bool &Res) const override; - error_code isSectionData(DataRefImpl Sec, bool &Res) const; + error_code isSectionData(DataRefImpl Sec, bool &Res) const override; error_code isSectionBSS(DataRefImpl Sec, bool &Res) const override; error_code isSectionRequiredForExecution(DataRefImpl Sec, bool &Res) const override; - error_code isSectionVirtual(DataRefImpl Sec, bool &Res) const; + error_code isSectionVirtual(DataRefImpl Sec, bool &Res) const override; error_code isSectionZeroInit(DataRefImpl Sec, bool &Res) const override; - error_code isSectionReadOnlyData(DataRefImpl Sec, bool &Res) const; + error_code isSectionReadOnlyData(DataRefImpl Sec, bool &Res) const override; error_code sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb, bool &Result) const override; - relocation_iterator section_rel_begin(DataRefImpl Sec) const; + relocation_iterator section_rel_begin(DataRefImpl Sec) const override; relocation_iterator section_rel_end(DataRefImpl Sec) const override; section_iterator getRelocatedSection(DataRefImpl Sec) const override; @@ -98,7 +98,7 @@ protected: uint64_t &Res) const override; error_code getRelocationOffset(DataRefImpl Rel, uint64_t &Res) const override; symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; - error_code getRelocationType(DataRefImpl Rel, uint64_t &Res) const; + error_code getRelocationType(DataRefImpl Rel, uint64_t &Res) const override; error_code getRelocationTypeName(DataRefImpl Rel, SmallVectorImpl<char> &Result) const override; error_code getRelocationValueString(DataRefImpl Rel, diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h index cb1c04688d..d39a9423e0 100644 --- a/include/llvm/Object/ObjectFile.h +++ b/include/llvm/Object/ObjectFile.h @@ -223,7 +223,7 @@ protected: // modified externally. It's UB otherwise. friend class SymbolRef; virtual error_code getSymbolName(DataRefImpl Symb, StringRef &Res) const = 0; - virtual error_code printSymbolName(raw_ostream &OS, DataRefImpl Symb) const; + error_code printSymbolName(raw_ostream &OS, DataRefImpl Symb) const override; virtual error_code getSymbolAddress(DataRefImpl Symb, uint64_t &Res) const = 0; virtual error_code getSymbolFileOffset(DataRefImpl Symb, uint64_t &Res)const=0; virtual error_code getSymbolAlignment(DataRefImpl Symb, uint32_t &Res) const; |