Fix Clang-tidy modernize-use-override warnings, other minor fixes.

Differential revision: http://reviews.llvm.org/D14310

llvm-svn: 252034
This commit is contained in:
Eugene Zelenko 2015-11-04 02:11:57 +00:00
parent aeefae0cc5
commit 6e43b499d2
2 changed files with 10 additions and 9 deletions

View File

@ -251,7 +251,7 @@ template <class ELFT>
class InterpSection final : public OutputSectionBase<ELFT> {
public:
InterpSection();
void writeTo(uint8_t *Buf);
void writeTo(uint8_t *Buf) override;
};
template <class ELFT>
@ -392,6 +392,8 @@ template <class ELFT> StringTableSection<ELFT> *Out<ELFT>::StrTab;
template <class ELFT> SymbolTableSection<ELFT> *Out<ELFT>::DynSymTab;
template <class ELFT> SymbolTableSection<ELFT> *Out<ELFT>::SymTab;
template <class ELFT> typename Out<ELFT>::uintX_t Out<ELFT>::TlsInitImageVA;
}
}
#endif
} // namespace elf2
} // namespace lld
#endif // LLD_ELF_OUTPUT_SECTIONS_H

View File

@ -23,7 +23,6 @@ namespace mach_o {
//
class SectCreateFile : public File {
public:
class SectCreateAtom : public SimpleDefinedAtom {
public:
SectCreateAtom(const File &file, StringRef segName, StringRef sectName,
@ -68,19 +67,19 @@ public:
new (allocator()) SectCreateAtom(*this, seg, sect, std::move(content)));
}
const AtomVector<DefinedAtom> &defined() const {
const AtomVector<DefinedAtom> &defined() const override {
return _definedAtoms;
}
const AtomVector<UndefinedAtom> &undefined() const {
const AtomVector<UndefinedAtom> &undefined() const override {
return _noUndefinedAtoms;
}
const AtomVector<SharedLibraryAtom> &sharedLibrary() const {
const AtomVector<SharedLibraryAtom> &sharedLibrary() const override {
return _noSharedLibraryAtoms;
}
const AtomVector<AbsoluteAtom> &absolute() const {
const AtomVector<AbsoluteAtom> &absolute() const override {
return _noAbsoluteAtoms;
}