[PATCH] D29475: [LTO] Add ability to emit assembly to new LTO API
Tobias Edler von Koch via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 2 15:42:28 PST 2017
tobiasvk added a comment.
In https://reviews.llvm.org/D29475#665351, @mehdi_amini wrote:
> Can you clarify how one would implement `-save-temps` in a linker this way?
Set Conf.CGFileType to CGFT_Assembly, then run an external assembler on all outputs produced by LTO before linking. We leave the output files around and output a notice to the user about their location. This is what we've been doing with the legacy API, and we'd like to keep it as we move to the new API.
https://reviews.llvm.org/D29475
More information about the llvm-commits
mailing list