[lld] r252034 - Fix Clang-tidy modernize-use-override warnings, other minor fixes.
Eugene Zelenko via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 3 18:11:57 PST 2015
Author: eugenezelenko
Date: Tue Nov 3 20:11:57 2015
New Revision: 252034
URL: http://llvm.org/viewvc/llvm-project?rev=252034&view=rev
Log:
Fix Clang-tidy modernize-use-override warnings, other minor fixes.
Differential revision: http://reviews.llvm.org/D14310
Modified:
lld/trunk/ELF/OutputSections.h
lld/trunk/lib/ReaderWriter/MachO/SectCreateFile.h
Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=252034&r1=252033&r2=252034&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Tue Nov 3 20:11:57 2015
@@ -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
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
Modified: lld/trunk/lib/ReaderWriter/MachO/SectCreateFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/SectCreateFile.h?rev=252034&r1=252033&r2=252034&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/SectCreateFile.h (original)
+++ lld/trunk/lib/ReaderWriter/MachO/SectCreateFile.h Tue Nov 3 20:11:57 2015
@@ -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;
}
More information about the llvm-commits
mailing list