Do not use public inheritance where it is not needed.
authorRui Ueyama <ruiu@google.com>
Wed, 5 Apr 2017 05:06:58 +0000 (05:06 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 5 Apr 2017 05:06:58 +0000 (05:06 +0000)
ScriptParser is not a ScriptLexer, so this should be a private inheritance.

llvm-svn: 299513

lld/ELF/LinkerScript.cpp

index e1d6edc..a51a2fc 100644 (file)
@@ -1026,7 +1026,7 @@ size_t LinkerScript::getPhdrIndex(const Twine &Loc, StringRef PhdrName) {
   return 0;
 }
 
-class elf::ScriptParser final : public ScriptLexer {
+class elf::ScriptParser final : ScriptLexer {
   typedef void (ScriptParser::*Handler)();
 
 public: