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

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed May 6 07:06:11 PDT 2026


teresajohnson wrote:

> The implementation here just uses `cloneModule` because the typical pipeline just emits directly to an object file. An alternative approach would be to emit textual assembly, then create an MC object to turn that into an object file. I thought this was overkill and likely slower overall. The only reason I think this approach would be useful is if we wanted to expose a callback on the target machine, but that would probably slow down the rest of the pipeline. I will leave this up to reviewers.

Isn't this for debugging? Does compilation speed matter all that much?

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


More information about the llvm-commits mailing list