Move dcx creation into WriteBackendMethods::codegen

This commit is contained in:
bjorn3
2025-07-03 14:43:09 +00:00
parent 653bb64c75
commit 7fd78df346
6 changed files with 10 additions and 12 deletions

View File

@@ -212,11 +212,10 @@ impl WriteBackendMethods for LlvmCodegenBackend {
}
fn codegen(
cgcx: &CodegenContext<Self>,
dcx: DiagCtxtHandle<'_>,
module: ModuleCodegen<Self::Module>,
config: &ModuleConfig,
) -> Result<CompiledModule, FatalError> {
back::write::codegen(cgcx, dcx, module, config)
back::write::codegen(cgcx, module, config)
}
fn prepare_thin(
module: ModuleCodegen<Self::Module>,