[lld] [LLD] [ELF] Add support for linker script unary plus operator (PR #121508)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 09:28:22 PST 2025
================
@@ -1489,6 +1489,9 @@ Expr ScriptParser::readPrimary() {
Expr e = readPrimary();
return [=] { return -e().getValue(); };
}
+ if (consume("+")) {
+ return readPrimary();
+ }
----------------
MaskRay wrote:
drop braces
https://github.com/llvm/llvm-project/pull/121508
More information about the llvm-commits
mailing list