[clang] [lld] [lld][COFF] Add optimization remarks options to lld-link (PR #205390)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 00:13:27 PDT 2026


================
@@ -360,6 +360,34 @@ defm prefetch_inputs : B<"prefetch-inputs",
                          "possible, to improve link times",
                          "Do not prefetch input files (default)">;
 
+def opt_remarks_filename: Separate<["-"], "opt-remarks-filename">,
----------------
mstorsjo wrote:

Using `Separate<>` for `lld-link` options (for the supposedly native style options) seems very untypical. Typical `link.exe`  style options look like `-out:foo.exe` or `/out:foo.exe`, which you get with the `P<>` class here.

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


More information about the llvm-commits mailing list