[lld] [LLD] [ELF] Add support for linker script unary plus operator (PR #121508)

Parth Arora via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 3 12:10:17 PST 2025


================
@@ -1489,6 +1489,9 @@ Expr ScriptParser::readPrimary() {
     Expr e = readPrimary();
     return [=] { return -e().getValue(); };
   }
+  if (consume("+")) {
+    return readPrimary();
+  }
----------------
partaror wrote:

Done.

https://github.com/llvm/llvm-project/pull/121508


More information about the llvm-commits mailing list