[lld] [lld][ELF] remove `consumeLabel` in ScriptLexer (PR #99567)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 14:05:15 PDT 2024
================
@@ -1692,11 +1692,11 @@ ScriptParser::readSymbols() {
while (!errorCount()) {
if (consume("}"))
break;
- if (consumeLabel("local")) {
+ if (consume("local:") || (consume("local") && consume(":"))) {
v = &locals;
continue;
}
- if (consumeLabel("global")) {
+ if (consume("global:") || (consume("global") && consume(":"))) {
----------------
MaskRay wrote:
We should check `local:` and `global:` below at `StringRef tok = next();`
https://github.com/llvm/llvm-project/pull/99567
More information about the llvm-commits
mailing list