@@ -30,7 +30,7 @@ use rustc_codegen_ssa::back::write::{CodegenContext, FatLtoInput};
3030use rustc_codegen_ssa:: traits:: * ;
3131use rustc_codegen_ssa:: { looks_like_rust_object_file, ModuleCodegen , ModuleKind } ;
3232use rustc_data_structures:: memmap:: Mmap ;
33- use rustc_errors:: { FatalError , Handler } ;
33+ use rustc_errors:: { FatalError , DiagCtxt } ;
3434use rustc_hir:: def_id:: LOCAL_CRATE ;
3535use rustc_middle:: dep_graph:: WorkProduct ;
3636use rustc_middle:: middle:: exported_symbols:: { SymbolExportInfo , SymbolExportLevel } ;
@@ -61,7 +61,7 @@ struct LtoData {
6161 tmp_path : TempDir ,
6262}
6363
64- fn prepare_lto ( cgcx : & CodegenContext < GccCodegenBackend > , diag_handler : & Handler ) -> Result < LtoData , FatalError > {
64+ fn prepare_lto ( cgcx : & CodegenContext < GccCodegenBackend > , diag_handler : & DiagCtxt ) -> Result < LtoData , FatalError > {
6565 let export_threshold = match cgcx. lto {
6666 // We're just doing LTO for our one crate
6767 Lto :: ThinLocal => SymbolExportLevel :: Rust ,
@@ -192,7 +192,7 @@ pub(crate) fn run_fat(
192192 )
193193}
194194
195- fn fat_lto ( cgcx : & CodegenContext < GccCodegenBackend > , _diag_handler : & Handler , modules : Vec < FatLtoInput < GccCodegenBackend > > , cached_modules : Vec < ( SerializedModule < ModuleBuffer > , WorkProduct ) > , mut serialized_modules : Vec < ( SerializedModule < ModuleBuffer > , CString ) > , tmp_path : TempDir ,
195+ fn fat_lto ( cgcx : & CodegenContext < GccCodegenBackend > , _diag_handler : & DiagCtxt , modules : Vec < FatLtoInput < GccCodegenBackend > > , cached_modules : Vec < ( SerializedModule < ModuleBuffer > , WorkProduct ) > , mut serialized_modules : Vec < ( SerializedModule < ModuleBuffer > , CString ) > , tmp_path : TempDir ,
196196 //symbols_below_threshold: &[*const libc::c_char],
197197) -> Result < LtoModuleCodegen < GccCodegenBackend > , FatalError > {
198198 let _timer = cgcx. prof . generic_activity ( "GCC_fat_lto_build_monolithic_module" ) ;
0 commit comments