This patch defines a new command line option, /MSVCLTO, to LLD.
If that option is given, LLD invokes link.exe to link LTO-generated
object files. This is hacky but useful because link.exe can create
PDB files.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lld/COFF/DriverUtils.cpp | ||
---|---|---|
647 ↗ | (On Diff #87062) | Should this create a response file instead of passing the arguments directly? |
652 ↗ | (On Diff #87062) | Should this strip all inputs or just bitcode files? |
658 ↗ | (On Diff #87062) | What about /opt:lld*? |
lld/COFF/SymbolTable.cpp | ||
354 ↗ | (On Diff #87062) | Maybe call this something like compileBitcodeFiles? |
Comment Actions
LGTM
lld/COFF/DriverUtils.cpp | ||
---|---|---|
659 ↗ | (On Diff #87273) | I guess defaultlib flags will always refer to archive files, so you probably don't want to strip them. |