[lld] [ELF] PHDRS update while condition and phdrs.s unclose2.lds output (PR #100918)

Hongyu Chen via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 28 23:06:55 PDT 2024


yugier wrote:

> Perhaps `readNameTill` can be added: it behaves like `till`, but it expects that token to be a NAME (identifier of quoted string). If `(` `)` `}` is encountered, report an error. This function will allows us to remove a few `unquote(tok)`.
> 
> Then this PR can be updated to use `readNameTill`

Sounds good. Added `readNameTill` and changed the test case. There are might be more places we can improve but I changed ones that I can find. 

https://github.com/llvm/llvm-project/pull/100918


More information about the llvm-commits mailing list