Index: ELF/OutputSections.h =================================================================== --- ELF/OutputSections.h +++ ELF/OutputSections.h @@ -247,7 +247,7 @@ class InterpSection final : public OutputSectionBase { public: InterpSection(); - void writeTo(uint8_t *Buf); + void writeTo(uint8_t *Buf) override; }; template @@ -385,6 +385,8 @@ template StringTableSection *Out::StrTab; template SymbolTableSection *Out::DynSymTab; template SymbolTableSection *Out::SymTab; -} -} -#endif + +} // namespace elf2 +} // namespace lld + +#endif // LLD_ELF_OUTPUT_SECTIONS_H Index: lib/ReaderWriter/MachO/SectCreateFile.h =================================================================== --- lib/ReaderWriter/MachO/SectCreateFile.h +++ 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; }