@@ -71,7 +71,7 @@ use gccjit::{Context, OptimizationLevel, CType};
71
71
use rustc_ast:: expand:: allocator:: AllocatorKind ;
72
72
use rustc_codegen_ssa:: { CodegenResults , CompiledModule , ModuleCodegen } ;
73
73
use 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 } ;
75
75
use rustc_codegen_ssa:: back:: lto:: { LtoModuleCodegen , SerializedModule , ThinModule } ;
76
76
use rustc_codegen_ssa:: target_features:: supported_target_features;
77
77
use rustc_codegen_ssa:: traits:: { CodegenBackend , ExtraBackendMethods , ModuleBufferMethods , ThinBufferMethods , WriteBackendMethods } ;
@@ -217,14 +217,14 @@ impl WriteBackendMethods for GccCodegenBackend {
217
217
type ThinData = ( ) ;
218
218
type ThinBuffer = ThinBuffer ;
219
219
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 > {
221
221
// TODO(antoyo): implement LTO by sending -flto to libgccjit and adding the appropriate gcc linker plugins.
222
222
// NOTE: implemented elsewhere.
223
223
// TODO(antoyo): what is implemented elsewhere ^ ?
224
224
let module =
225
225
match modules. remove ( 0 ) {
226
- FatLTOInput :: InMemory ( module) => module,
227
- FatLTOInput :: Serialized { .. } => {
226
+ FatLtoInput :: InMemory ( module) => module,
227
+ FatLtoInput :: Serialized { .. } => {
228
228
unimplemented ! ( ) ;
229
229
}
230
230
} ;
0 commit comments