summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/OutputSections.h10
-rw-r--r--lld/lib/ReaderWriter/MachO/SectCreateFile.h9
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;
}
OpenPOWER on IntegriCloud