forked from OSchip/llvm-project
Revert r273427 "[ELF] - Simplify loop in parseVersionSymbols(). NFC."
llvm-svn: 273538
This commit is contained in:
parent
3cda384e37
commit
da5fa1ebba
|
@ -118,9 +118,11 @@ void VersionScriptParser::parseVersionSymbols(StringRef Version) {
|
|||
for (;;) {
|
||||
if (peek() == "extern")
|
||||
setError("extern keyword is not supported");
|
||||
if (peek() == "}" || peek() == "local:" || Error)
|
||||
StringRef Cur = peek();
|
||||
if (Cur == "}" || Cur == "local:" || Error)
|
||||
return;
|
||||
Globals->push_back(next());
|
||||
next();
|
||||
Globals->push_back(Cur);
|
||||
expect(";");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue