@@ -71,7 +71,7 @@ use gccjit::{Context, OptimizationLevel, CType};
7171use rustc_ast:: expand:: allocator:: AllocatorKind ;
7272use rustc_codegen_ssa:: { CodegenResults , CompiledModule , ModuleCodegen } ;
7373use rustc_codegen_ssa:: base:: codegen_crate;
74- use rustc_codegen_ssa:: back:: write:: { CodegenContext , FatLTOInput , ModuleConfig , TargetMachineFactoryFn } ;
74+ use rustc_codegen_ssa:: back:: write:: { CodegenContext , FatLtoInput , ModuleConfig , TargetMachineFactoryFn } ;
7575use rustc_codegen_ssa:: back:: lto:: { LtoModuleCodegen , SerializedModule , ThinModule } ;
7676use rustc_codegen_ssa:: target_features:: supported_target_features;
7777use rustc_codegen_ssa:: traits:: { CodegenBackend , ExtraBackendMethods , ModuleBufferMethods , ThinBufferMethods , WriteBackendMethods } ;
@@ -217,14 +217,14 @@ impl WriteBackendMethods for GccCodegenBackend {
217217 type ThinData = ( ) ;
218218 type ThinBuffer = ThinBuffer ;
219219
220- fn run_fat_lto ( _cgcx : & CodegenContext < Self > , mut modules : Vec < FatLTOInput < Self > > , _cached_modules : Vec < ( SerializedModule < Self :: ModuleBuffer > , WorkProduct ) > ) -> Result < LtoModuleCodegen < Self > , FatalError > {
220+ fn run_fat_lto ( _cgcx : & CodegenContext < Self > , mut modules : Vec < FatLtoInput < Self > > , _cached_modules : Vec < ( SerializedModule < Self :: ModuleBuffer > , WorkProduct ) > ) -> Result < LtoModuleCodegen < Self > , FatalError > {
221221 // TODO(antoyo): implement LTO by sending -flto to libgccjit and adding the appropriate gcc linker plugins.
222222 // NOTE: implemented elsewhere.
223223 // TODO(antoyo): what is implemented elsewhere ^ ?
224224 let module =
225225 match modules. remove ( 0 ) {
226- FatLTOInput :: InMemory ( module) => module,
227- FatLTOInput :: Serialized { .. } => {
226+ FatLtoInput :: InMemory ( module) => module,
227+ FatLtoInput :: Serialized { .. } => {
228228 unimplemented ! ( ) ;
229229 }
230230 } ;
0 commit comments