[lld] [lld][ELF] removed peek2 in linker script lexer (PR #99539)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 13:59:29 PDT 2024
MaskRay wrote:
We should not add the peek2 ability to `peek`. Instead, the call site should check whether the first token is `(`, and if yes, peek another token to check `NOLOAD/COPY/INFO/TYPE`. Basically, we move some `"("` code from `readSectionDirective` to the caller.
https://github.com/llvm/llvm-project/pull/99539
More information about the llvm-commits
mailing list