[lld] r273539 - [ELF] - Reorder expressions in parseVersionSymbols()'s loop. NFC.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 23 06:22:24 PDT 2016
Thanks!
On 23 June 2016 at 03:26, George Rimar via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> 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();
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list