[lld] [lld][COFF][LTO] Implement /lldemit:asm option (PR #67079)

Matheus Izvekov via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 03:41:22 PDT 2023


================
@@ -213,6 +221,8 @@ std::vector<InputFile *> BitcodeCompiler::compile() {
     pruneCache(ctx.config.ltoCache, ctx.config.ltoCachePolicy, files);
 
   std::vector<InputFile *> ret;
+  bool emitASM = ctx.config.emit == EmitKind::ASM;
+  const char *Ext = emitASM ? ".asm" : ".obj";
----------------
mizvekov wrote:

I believe we could hook this up to generate masm style assembly instead, would that be preferable?
The ELF linker even has the option to choose between styles, but if we went that direction, I lean on doing it on a separate MR.

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


More information about the llvm-commits mailing list