File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,12 @@ use crate::{GccCodegenBackend, GccContext};
16
16
17
17
pub ( crate ) fn codegen (
18
18
cgcx : & CodegenContext < GccCodegenBackend > ,
19
- dcx : DiagCtxtHandle < ' _ > ,
20
19
module : ModuleCodegen < GccContext > ,
21
20
config : & ModuleConfig ,
22
21
) -> Result < CompiledModule , FatalError > {
22
+ let dcx = cgcx. create_dcx ( ) ;
23
+ let dcx = dcx. handle ( ) ;
24
+
23
25
let _timer = cgcx. prof . generic_activity_with_arg ( "GCC_module_codegen" , & * module. name ) ;
24
26
{
25
27
let context = & module. module_llvm . context ;
Original file line number Diff line number Diff line change @@ -408,11 +408,10 @@ impl WriteBackendMethods for GccCodegenBackend {
408
408
409
409
fn codegen (
410
410
cgcx : & CodegenContext < Self > ,
411
- dcx : DiagCtxtHandle < ' _ > ,
412
411
module : ModuleCodegen < Self :: Module > ,
413
412
config : & ModuleConfig ,
414
413
) -> Result < CompiledModule , FatalError > {
415
- back:: write:: codegen ( cgcx, dcx , module, config)
414
+ back:: write:: codegen ( cgcx, module, config)
416
415
}
417
416
418
417
fn prepare_thin (
You can’t perform that action at this time.
0 commit comments