[clang] [llvm] Pass TargetMachine from from Clang to `BitcodeWriter`and `ThinLTOBitcodeWriter` pass for thin and fat LTO respectively. (PR #143692)
Garvit Gupta via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 3 11:27:22 PDT 2025
================
@@ -1158,7 +1158,7 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
return;
}
MPM.addPass(ThinLTOBitcodeWriterPass(
- *OS, ThinLinkOS ? &ThinLinkOS->os() : nullptr));
+ *OS, ThinLinkOS ? &ThinLinkOS->os() : nullptr, false, TM.get()));
----------------
quic-garvgupt wrote:
Fixed
https://github.com/llvm/llvm-project/pull/143692
More information about the cfe-commits
mailing list