File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ fn thin_lto(
589
589
Ok ( ( opt_jobs, copy_jobs) )
590
590
}
591
591
592
- pub unsafe fn optimize_thin_module (
592
+ pub fn optimize_thin_module (
593
593
thin_module : ThinModule < GccCodegenBackend > ,
594
594
_cgcx : & CodegenContext < GccCodegenBackend > ,
595
595
) -> Result < ModuleCodegen < GccContext > , FatalError > {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use crate::base::add_pic_option;
14
14
use crate :: errors:: CopyBitcode ;
15
15
use crate :: { GccCodegenBackend , GccContext } ;
16
16
17
- pub ( crate ) unsafe fn codegen (
17
+ pub ( crate ) fn codegen (
18
18
cgcx : & CodegenContext < GccCodegenBackend > ,
19
19
dcx : DiagCtxtHandle < ' _ > ,
20
20
module : ModuleCodegen < GccContext > ,
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ impl WriteBackendMethods for GccCodegenBackend {
413
413
cgcx : & CodegenContext < Self > ,
414
414
thin : ThinModule < Self > ,
415
415
) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
416
- unsafe { back:: lto:: optimize_thin_module ( thin, cgcx) }
416
+ back:: lto:: optimize_thin_module ( thin, cgcx)
417
417
}
418
418
419
419
unsafe fn codegen (
@@ -422,7 +422,7 @@ impl WriteBackendMethods for GccCodegenBackend {
422
422
module : ModuleCodegen < Self :: Module > ,
423
423
config : & ModuleConfig ,
424
424
) -> Result < CompiledModule , FatalError > {
425
- unsafe { back:: write:: codegen ( cgcx, dcx, module, config) }
425
+ back:: write:: codegen ( cgcx, dcx, module, config)
426
426
}
427
427
428
428
fn prepare_thin (
You can’t perform that action at this time.
0 commit comments