[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


================
@@ -235,20 +245,21 @@ std::vector<InputFile *> BitcodeCompiler::compile() {
     if (bitcodeFilePath == "ld-temp.o") {
       ltoObjName =
           saver().save(Twine(ctx.config.outputFile) + ".lto" +
-                       (i == 0 ? Twine("") : Twine('.') + Twine(i)) + ".obj");
+                       (i == 0 ? Twine("") : Twine('.') + Twine(i)) + Ext);
     } else {
       StringRef directory = sys::path::parent_path(bitcodeFilePath);
-      StringRef baseName = sys::path::filename(bitcodeFilePath);
+      StringRef baseName = sys::path::stem(bitcodeFilePath);
----------------
mstorsjo wrote:

Why the change from `filename` to `stem` here?

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


More information about the llvm-commits mailing list