projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f62d260
)
Do not use public inheritance where it is not needed.
author
Rui Ueyama
<ruiu@google.com>
Wed, 5 Apr 2017 05:06:58 +0000
(
05:06
+0000)
committer
Rui 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
patch
|
blob
|
history
diff --git
a/lld/ELF/LinkerScript.cpp
b/lld/ELF/LinkerScript.cpp
index
e1d6edc
..
a51a2fc
100644
(file)
--- a/
lld/ELF/LinkerScript.cpp
+++ b/
lld/ELF/LinkerScript.cpp
@@
-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: