@@ -374,7 +374,7 @@ impl<B: WriteBackendMethods> CodegenContext<B> {
374
374
375
375
fn generate_lto_work < B : ExtraBackendMethods > (
376
376
cgcx : & CodegenContext < B > ,
377
- needs_fat_lto : Vec < FatLTOInput < B > > ,
377
+ needs_fat_lto : Vec < FatLtoInput < B > > ,
378
378
needs_thin_lto : Vec < ( String , B :: ThinBuffer ) > ,
379
379
import_only_modules : Vec < ( SerializedModule < B :: ModuleBuffer > , WorkProduct ) > ,
380
380
) -> Vec < ( WorkItem < B > , u64 ) > {
@@ -758,14 +758,14 @@ pub(crate) enum WorkItemResult<B: WriteBackendMethods> {
758
758
759
759
/// The backend has finished compiling a CGU, which now needs to go through
760
760
/// fat LTO.
761
- NeedsFatLTO ( FatLTOInput < B > ) ,
761
+ NeedsFatLto ( FatLtoInput < B > ) ,
762
762
763
763
/// The backend has finished compiling a CGU, which now needs to go through
764
764
/// thin LTO.
765
- NeedsThinLTO ( String , B :: ThinBuffer ) ,
765
+ NeedsThinLto ( String , B :: ThinBuffer ) ,
766
766
}
767
767
768
- pub enum FatLTOInput < B : WriteBackendMethods > {
768
+ pub enum FatLtoInput < B : WriteBackendMethods > {
769
769
Serialized { name : String , buffer : B :: ModuleBuffer } ,
770
770
InMemory ( ModuleCodegen < B :: Module > ) ,
771
771
}
@@ -854,17 +854,17 @@ fn execute_optimize_work_item<B: ExtraBackendMethods>(
854
854
panic ! ( "Error writing pre-lto-bitcode file `{}`: {}" , path. display( ) , e) ;
855
855
} ) ;
856
856
}
857
- Ok ( WorkItemResult :: NeedsThinLTO ( name, thin_buffer) )
857
+ Ok ( WorkItemResult :: NeedsThinLto ( name, thin_buffer) )
858
858
}
859
859
ComputedLtoType :: Fat => match bitcode {
860
860
Some ( path) => {
861
861
let ( name, buffer) = B :: serialize_module ( module) ;
862
862
fs:: write ( & path, buffer. data ( ) ) . unwrap_or_else ( |e| {
863
863
panic ! ( "Error writing pre-lto-bitcode file `{}`: {}" , path. display( ) , e) ;
864
864
} ) ;
865
- Ok ( WorkItemResult :: NeedsFatLTO ( FatLTOInput :: Serialized { name, buffer } ) )
865
+ Ok ( WorkItemResult :: NeedsFatLto ( FatLtoInput :: Serialized { name, buffer } ) )
866
866
}
867
- None => Ok ( WorkItemResult :: NeedsFatLTO ( FatLTOInput :: InMemory ( module) ) ) ,
867
+ None => Ok ( WorkItemResult :: NeedsFatLto ( FatLtoInput :: InMemory ( module) ) ) ,
868
868
} ,
869
869
}
870
870
}
@@ -1554,12 +1554,12 @@ fn start_executing_work<B: ExtraBackendMethods>(
1554
1554
assert ! ( compiled_modules. is_empty( ) ) ;
1555
1555
needs_link. push ( module) ;
1556
1556
}
1557
- Ok ( WorkItemResult :: NeedsFatLTO ( fat_lto_input) ) => {
1557
+ Ok ( WorkItemResult :: NeedsFatLto ( fat_lto_input) ) => {
1558
1558
assert ! ( !started_lto) ;
1559
1559
assert ! ( needs_thin_lto. is_empty( ) ) ;
1560
1560
needs_fat_lto. push ( fat_lto_input) ;
1561
1561
}
1562
- Ok ( WorkItemResult :: NeedsThinLTO ( name, thin_buffer) ) => {
1562
+ Ok ( WorkItemResult :: NeedsThinLto ( name, thin_buffer) ) => {
1563
1563
assert ! ( !started_lto) ;
1564
1564
assert ! ( needs_fat_lto. is_empty( ) ) ;
1565
1565
needs_thin_lto. push ( ( name, thin_buffer) ) ;
0 commit comments