[lld] [lld][ELF] remove `consumeLabel` in ScriptLexer (PR #99567)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 20 14:18:41 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:
* Manually inline the two `consumeLabel` calls
* Move the expanded body to below, just above `next()`
https://github.com/llvm/llvm-project/pull/99567
More information about the llvm-commits
mailing list