[lld] r222021 - Silence inconsistent override warnings.

Eric Christopher echristo at gmail.com
Fri Nov 14 10:44:53 PST 2014


Author: echristo
Date: Fri Nov 14 12:44:53 2014
New Revision: 222021

URL: http://llvm.org/viewvc/llvm-project?rev=222021&view=rev
Log:
Silence inconsistent override warnings.

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

Modified: lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h?rev=222021&r1=222020&r2=222021&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h Fri Nov 14 12:44:53 2014
@@ -46,10 +46,10 @@ public:
 
   /// \brief Modify the section contents before assigning virtual addresses
   //  or assigning file offsets
-  virtual void doPreFlight() {}
+  virtual void doPreFlight() override {}
 
   /// \brief Finalize the section contents before writing
-  virtual void finalize() {}
+  virtual void finalize() override {}
 
   /// \brief Does this section have an output segment.
   virtual bool hasOutputSegment() {
@@ -73,7 +73,7 @@ public:
   Layout::SegmentType getSegmentType() const { return _segmentType; }
 
   /// \brief Return the type of content that the section contains
-  virtual int getContentType() const {
+  virtual int getContentType() const override {
     if (_flags & llvm::ELF::SHF_EXECINSTR)
       return Chunk<ELFT>::ContentType::Code;
     else if (_flags & llvm::ELF::SHF_WRITE)





More information about the llvm-commits mailing list