File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ fn thin_lto(
589589 Ok ( ( opt_jobs, copy_jobs) )
590590}
591591
592- pub unsafe fn optimize_thin_module (
592+ pub fn optimize_thin_module (
593593 thin_module : ThinModule < GccCodegenBackend > ,
594594 _cgcx : & CodegenContext < GccCodegenBackend > ,
595595) -> Result < ModuleCodegen < GccContext > , FatalError > {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use crate::base::add_pic_option;
1414use crate :: errors:: CopyBitcode ;
1515use crate :: { GccCodegenBackend , GccContext } ;
1616
17- pub ( crate ) unsafe fn codegen (
17+ pub ( crate ) fn codegen (
1818 cgcx : & CodegenContext < GccCodegenBackend > ,
1919 dcx : DiagCtxtHandle < ' _ > ,
2020 module : ModuleCodegen < GccContext > ,
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ impl WriteBackendMethods for GccCodegenBackend {
413413 cgcx : & CodegenContext < Self > ,
414414 thin : ThinModule < Self > ,
415415 ) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
416- unsafe { back:: lto:: optimize_thin_module ( thin, cgcx) }
416+ back:: lto:: optimize_thin_module ( thin, cgcx)
417417 }
418418
419419 unsafe fn codegen (
@@ -422,7 +422,7 @@ impl WriteBackendMethods for GccCodegenBackend {
422422 module : ModuleCodegen < Self :: Module > ,
423423 config : & ModuleConfig ,
424424 ) -> Result < CompiledModule , FatalError > {
425- unsafe { back:: write:: codegen ( cgcx, dcx, module, config) }
425+ back:: write:: codegen ( cgcx, dcx, module, config)
426426 }
427427
428428 fn prepare_thin (
You can’t perform that action at this time.
0 commit comments