[lld] r299513 - Do not use public inheritance where it is not needed.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 22:06:58 PDT 2017


Author: ruiu
Date: Wed Apr  5 00:06:58 2017
New Revision: 299513

URL: http://llvm.org/viewvc/llvm-project?rev=299513&view=rev
Log:
Do not use public inheritance where it is not needed.

ScriptParser is not a ScriptLexer, so this should be a private inheritance.

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=299513&r1=299512&r2=299513&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Wed Apr  5 00:06:58 2017
@@ -1026,7 +1026,7 @@ size_t LinkerScript::getPhdrIndex(const
   return 0;
 }
 
-class elf::ScriptParser final : public ScriptLexer {
+class elf::ScriptParser final : ScriptLexer {
   typedef void (ScriptParser::*Handler)();
 
 public:




More information about the llvm-commits mailing list