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:
79acd2a
)
Use skip() instead of peek() and expect().
author
Rui Ueyama
<ruiu@google.com>
Sat, 16 Jul 2016 18:45:23 +0000
(18:45 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Sat, 16 Jul 2016 18:45:23 +0000
(18:45 +0000)
llvm-svn: 275692
lld/ELF/SymbolListFile.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/SymbolListFile.cpp
b/lld/ELF/SymbolListFile.cpp
index
a283e6f
..
9e08802
100644
(file)
--- a/
lld/ELF/SymbolListFile.cpp
+++ b/
lld/ELF/SymbolListFile.cpp
@@
-108,7
+108,6
@@
void VersionScriptParser::parseLocal() {
}
void VersionScriptParser::parseExtern(std::vector<SymbolVersion> *Globals) {
- expect("extern");
expect("C++");
expect("{");
@@
-131,7
+130,7
@@
void VersionScriptParser::parseGlobal(StringRef VerStr) {
Globals = &Config->VersionDefinitions.back().Globals;
for (;;) {
- if (
peek() == "extern"
)
+ if (
skip("extern")
)
parseExtern(Globals);
StringRef Cur = peek();