diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2015-11-04 02:11:57 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2015-11-04 02:11:57 +0000 |
commit | 6e43b499d2dbe6fc84f34c91b3e00a053d26561d (patch) | |
tree | ddaedddd5c9b36e9cd8d44c0a440229f0750eec4 | |
parent | aeefae0cc58e3afab940875e466926d90c285929 (diff) | |
download | bcm5719-llvm-6e43b499d2dbe6fc84f34c91b3e00a053d26561d.tar.gz bcm5719-llvm-6e43b499d2dbe6fc84f34c91b3e00a053d26561d.zip |
Fix Clang-tidy modernize-use-override warnings, other minor fixes.
Differential revision: http://reviews.llvm.org/D14310
llvm-svn: 252034
-rw-r--r-- | lld/ELF/OutputSections.h | 10 | ||||
-rw-r--r-- | lld/lib/ReaderWriter/MachO/SectCreateFile.h | 9 |
2 files changed, 10 insertions, 9 deletions
diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index df173361da2..51c0fb0a688 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -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 diff --git a/lld/lib/ReaderWriter/MachO/SectCreateFile.h b/lld/lib/ReaderWriter/MachO/SectCreateFile.h index ea16e69ab3c..2e6e97c5433 100644 --- a/lld/lib/ReaderWriter/MachO/SectCreateFile.h +++ b/lld/lib/ReaderWriter/MachO/SectCreateFile.h @@ -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; } |