[lld] [lld][COFF][LTO] Implement /lldemit:asm option (PR #67079)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 3 01:43:31 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";
----------------
mstorsjo wrote:
Hmm, even if this is among link.exe style tools, the asm that we generate is `.s` GAS style assembly, so I think `.s` would be more accurate here?
https://github.com/llvm/llvm-project/pull/67079
More information about the llvm-commits
mailing list