[lld] r233424 - Use override keyword instead of virtual.

Rui Ueyama ruiu at google.com
Fri Mar 27 14:39:15 PDT 2015


Author: ruiu
Date: Fri Mar 27 16:39:15 2015
New Revision: 233424

URL: http://llvm.org/viewvc/llvm-project?rev=233424&view=rev
Log:
Use override keyword instead of virtual.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonSectionChunks.h
    lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h

Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonSectionChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonSectionChunks.h?rev=233424&r1=233423&r2=233424&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonSectionChunks.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonSectionChunks.h Fri Mar 27 16:39:15 2015
@@ -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;

Modified: lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h?rev=233424&r1=233423&r2=233424&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h Fri Mar 27 16:39:15 2015
@@ -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; }





More information about the llvm-commits mailing list