diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-03-27 21:39:15 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-03-27 21:39:15 +0000 |
| commit | 89616adb0c193c88ae61d8f62a046dd8dbb35d46 (patch) | |
| tree | 82bc8e755b81dd3627b5d86ee1a38730e8307249 | |
| parent | 988355c3aec10119b9ba3f48f91957181f1b306c (diff) | |
| download | bcm5719-llvm-89616adb0c193c88ae61d8f62a046dd8dbb35d46.tar.gz bcm5719-llvm-89616adb0c193c88ae61d8f62a046dd8dbb35d46.zip | |
Use override keyword instead of virtual.
llvm-svn: 233424
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/Hexagon/HexagonSectionChunks.h | 6 | ||||
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/SectionChunks.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonSectionChunks.h b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonSectionChunks.h index be66e74a1c2..627ca9d8048 100644 --- a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonSectionChunks.h +++ b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonSectionChunks.h @@ -30,12 +30,12 @@ public: } /// \brief Finalize the section contents before writing - virtual void doPreFlight(); + void doPreFlight() override; /// \brief Does this section have an output segment. - virtual bool hasOutputSegment() { return true; } + bool hasOutputSegment() const override { return true; } - const lld::AtomLayout *appendAtom(const Atom *atom) { + const lld::AtomLayout *appendAtom(const Atom *atom) override { const DefinedAtom *definedAtom = cast<DefinedAtom>(atom); DefinedAtom::Alignment atomAlign = definedAtom->alignment(); uint64_t alignment = atomAlign.value; diff --git a/lld/lib/ReaderWriter/ELF/SectionChunks.h b/lld/lib/ReaderWriter/ELF/SectionChunks.h index 03ccfa059c6..145e3075cda 100644 --- a/lld/lib/ReaderWriter/ELF/SectionChunks.h +++ b/lld/lib/ReaderWriter/ELF/SectionChunks.h @@ -53,7 +53,7 @@ public: /// \brief Finalize the section contents before writing /// \brief Does this section have an output segment. - virtual bool hasOutputSegment() { return false; } + virtual bool hasOutputSegment() const { return false; } /// Return if the section is a loadable section that occupies memory virtual bool isLoadableSection() const { return false; } |

