[lld] [LLD] [COFF] Port -lto-sample-profile to COFF version of LLD (PR #85701)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 01:08:14 PDT 2024


mstorsjo wrote:

FYI, it'd be nice to support the same new LTO options in the mingw frontend as well. The mingw frontend uses the same options syntax as the ELF frontend, so in most cases it's just case of copying the new options definitions from `lld/ELF/Options.td` into `lld/MinGW/Options.td`, adding a mapping from the ELF style options to the lld-link style option in `lld/MinGW/Driver.cpp`, and adding a test case in `lld/test/MinGW/driver.test`.

This is clearly not a requirement for this PR in itself, but if you'd have a bit of extra time to invest in it, it'd be appreciated. Otherwise I can try to look into it later. (I'm trying to keep the MinGW driver up to date in supporting all the LTO options as the ELF driver, intersected with which features actually are supported in the COFF driver.)

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


More information about the llvm-commits mailing list