Save pre-link bitcode to ModuleCodegen

This commit is contained in:
DianQK 2025-02-06 22:00:19 +08:00
parent 9431427cc3
commit da50297a6e
No known key found for this signature in database
7 changed files with 33 additions and 22 deletions

View file

@ -194,7 +194,7 @@ impl WriteBackendMethods for LlvmCodegenBackend {
unsafe fn optimize(
cgcx: &CodegenContext<Self>,
dcx: DiagCtxtHandle<'_>,
module: &ModuleCodegen<Self::Module>,
module: &mut ModuleCodegen<Self::Module>,
config: &ModuleConfig,
) -> Result<(), FatalError> {
unsafe { back::write::optimize(cgcx, dcx, module, config) }