[PATCH] D22916: [ELF] - Linkerscript: implemented += operator.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 14:14:56 PDT 2016


On Thu, Jul 28, 2016 at 2:14 PM, George Rimar <grimar at accesssoftek.com>
wrote:

> grimar added inline comments.
>
> ================
> Comment at: ELF/LinkerScript.cpp:922-923
> @@ -918,3 +921,4 @@
>    if (Tok.getAsInteger(0, V)) {
> -    if (!isValidCIdentifier(Tok))
> +    if (Tok != "." && !isValidCIdentifier(Tok))
>        setError("malformed number: " + Tok);
> +    return [=](uint64_t Dot) { return getSymbolValue(Tok, Dot); };
> ----------------
> ruiu wrote:
> > I think you can remove this error check. If Tok is not a valid symbol
> name, getSymbolValue will find it.
> Looks few tests begins to fail if I remove. Since this line is not added
> by this patch, I suggest to leave it for now, I'll check how to remove it
> and prepare a patch tomorrow.
>

Sounds good.


>
>
> https://reviews.llvm.org/D22916
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160728/79d42cf2/attachment.html>


More information about the llvm-commits mailing list