[lld] [llvm] [LTO][lld] Emit textual assembly code with '--save-temps=asm' (PR #195922)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 13:48:25 PDT 2026


teresajohnson wrote:

> > I need some more time to look at this. I don't love all of the MC assembly handling being added to LTO - is there not some way to invoke this handling from codegen? If not it probably belongs in code gen called from here. I also need to look more carefully at the block added to set up the alternate pipeline to see what can be refactored and shared.
> 
> The MC layer is already linked as far as I'm aware, it's just more includes.

Can the new assemble() function be defined somewhere outside of LTO though, rather than including a ton of MC files and handling that isn't really LTO related? I.e. under lib/MC



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


More information about the llvm-commits mailing list