[lld] r230166 - Switch to use override, fixes -Winconsistent-missing-override on LLD.

Chandler Carruth chandlerc at gmail.com
Sun Feb 22 00:34:49 PST 2015


Author: chandlerc
Date: Sun Feb 22 02:34:47 2015
New Revision: 230166

URL: http://llvm.org/viewvc/llvm-project?rev=230166&view=rev
Log:
Switch to use override, fixes -Winconsistent-missing-override on LLD.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h

Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h?rev=230166&r1=230165&r2=230166&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h Sun Feb 22 02:34:47 2015
@@ -68,9 +68,8 @@ public:
   }
 
   /// \brief Return the section order for a input section
-  virtual Layout::SectionOrder getSectionOrder(StringRef name,
-                                               int32_t contentType,
-                                               int32_t contentPermissions) {
+  Layout::SectionOrder getSectionOrder(StringRef name, int32_t contentType,
+                                       int32_t contentPermissions) override {
     if ((contentType == DefinedAtom::typeStub) && (name.startswith(".text")))
       return DefaultLayout<ELFType>::ORDER_TEXT;
 





More information about the llvm-commits mailing list