[lld] r294006 - Handle numbers followed by ":" in linker scripts.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 6 07:27:45 PST 2017


Rui Ueyama <ruiu at google.com> writes:
>
> The current parser has limitations as it was discussed in the thread about
> linking the Linux kernel with LLD. Maybe it's time to rewrite the lexer to
> fix all the issues once and for all?

I think they are independent issues. The following version script is
valid

{ global: foo; local : bar; };

so I think it is a case where we do need to have ':' be its own token
and handle the complication in the parser.

Or are you suggesting changing the lexer to return "local:" when it gets
to "local :"?

Cheers,
Rafael


More information about the llvm-commits mailing list