[lld] r273539 - [ELF] - Reorder expressions in parseVersionSymbols()'s loop. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 23 00:26:05 PDT 2016
Author: grimar
Date: Thu Jun 23 02:26:05 2016
New Revision: 273539
URL: http://llvm.org/viewvc/llvm-project?rev=273539&view=rev
Log:
[ELF] - Reorder expressions in parseVersionSymbols()'s loop. NFC.
Modified:
lld/trunk/ELF/SymbolListFile.cpp
Modified: lld/trunk/ELF/SymbolListFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolListFile.cpp?rev=273539&r1=273538&r2=273539&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolListFile.cpp (original)
+++ lld/trunk/ELF/SymbolListFile.cpp Thu Jun 23 02:26:05 2016
@@ -116,9 +116,9 @@ void VersionScriptParser::parseVersionSy
}
for (;;) {
- if (peek() == "extern")
- setError("extern keyword is not supported");
StringRef Cur = peek();
+ if (Cur == "extern")
+ setError("extern keyword is not supported");
if (Cur == "}" || Cur == "local:" || Error)
return;
next();
More information about the llvm-commits
mailing list