[lld] [lld][ELF] remove `consumeLabel` in ScriptLexer (PR #99567)
Hongyu Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 13:52:27 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(":"))) {
----------------
yugier wrote:
I committed the change but I think it's not what you were trying to say? If it is not could you please specify it more?
https://github.com/llvm/llvm-project/pull/99567
More information about the llvm-commits
mailing list