Revert r273427 "[ELF] - Simplify loop in parseVersionSymbols(). NFC."

llvm-svn: 273538
This commit is contained in:
George Rimar 2016-06-23 07:23:07 +00:00
parent 3cda384e37
commit da5fa1ebba
1 changed files with 4 additions and 2 deletions

View File

@ -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(";");
}
}