Index: lld/trunk/ELF/OutputSections.h =================================================================== --- lld/trunk/ELF/OutputSections.h +++ lld/trunk/ELF/OutputSections.h @@ -251,7 +251,7 @@ class InterpSection final : public OutputSectionBase { public: InterpSection(); - void writeTo(uint8_t *Buf); + void writeTo(uint8_t *Buf) override; }; template @@ -392,6 +392,8 @@ template SymbolTableSection *Out::DynSymTab; template SymbolTableSection *Out::SymTab; template typename Out::uintX_t Out::TlsInitImageVA; -} -} -#endif + +} // namespace elf2 +} // namespace lld + +#endif // LLD_ELF_OUTPUT_SECTIONS_H Index: lld/trunk/lib/ReaderWriter/MachO/SectCreateFile.h =================================================================== --- lld/trunk/lib/ReaderWriter/MachO/SectCreateFile.h +++ lld/trunk/lib/ReaderWriter/MachO/SectCreateFile.h @@ -23,7 +23,6 @@ // class SectCreateFile : public File { public: - class SectCreateAtom : public SimpleDefinedAtom { public: SectCreateAtom(const File &file, StringRef segName, StringRef sectName, @@ -68,19 +67,19 @@ new (allocator()) SectCreateAtom(*this, seg, sect, std::move(content))); } - const AtomVector &defined() const { + const AtomVector &defined() const override { return _definedAtoms; } - const AtomVector &undefined() const { + const AtomVector &undefined() const override { return _noUndefinedAtoms; } - const AtomVector &sharedLibrary() const { + const AtomVector &sharedLibrary() const override { return _noSharedLibraryAtoms; } - const AtomVector &absolute() const { + const AtomVector &absolute() const override { return _noAbsoluteAtoms; }