@@ -374,7 +374,7 @@ impl<B: WriteBackendMethods> CodegenContext<B> {
374374
375375fn generate_lto_work < B : ExtraBackendMethods > (
376376 cgcx : & CodegenContext < B > ,
377- needs_fat_lto : Vec < FatLTOInput < B > > ,
377+ needs_fat_lto : Vec < FatLtoInput < B > > ,
378378 needs_thin_lto : Vec < ( String , B :: ThinBuffer ) > ,
379379 import_only_modules : Vec < ( SerializedModule < B :: ModuleBuffer > , WorkProduct ) > ,
380380) -> Vec < ( WorkItem < B > , u64 ) > {
@@ -758,14 +758,14 @@ pub(crate) enum WorkItemResult<B: WriteBackendMethods> {
758758
759759 /// The backend has finished compiling a CGU, which now needs to go through
760760 /// fat LTO.
761- NeedsFatLTO ( FatLTOInput < B > ) ,
761+ NeedsFatLto ( FatLtoInput < B > ) ,
762762
763763 /// The backend has finished compiling a CGU, which now needs to go through
764764 /// thin LTO.
765- NeedsThinLTO ( String , B :: ThinBuffer ) ,
765+ NeedsThinLto ( String , B :: ThinBuffer ) ,
766766}
767767
768- pub enum FatLTOInput < B : WriteBackendMethods > {
768+ pub enum FatLtoInput < B : WriteBackendMethods > {
769769 Serialized { name : String , buffer : B :: ModuleBuffer } ,
770770 InMemory ( ModuleCodegen < B :: Module > ) ,
771771}
@@ -854,17 +854,17 @@ fn execute_optimize_work_item<B: ExtraBackendMethods>(
854854 panic ! ( "Error writing pre-lto-bitcode file `{}`: {}" , path. display( ) , e) ;
855855 } ) ;
856856 }
857- Ok ( WorkItemResult :: NeedsThinLTO ( name, thin_buffer) )
857+ Ok ( WorkItemResult :: NeedsThinLto ( name, thin_buffer) )
858858 }
859859 ComputedLtoType :: Fat => match bitcode {
860860 Some ( path) => {
861861 let ( name, buffer) = B :: serialize_module ( module) ;
862862 fs:: write ( & path, buffer. data ( ) ) . unwrap_or_else ( |e| {
863863 panic ! ( "Error writing pre-lto-bitcode file `{}`: {}" , path. display( ) , e) ;
864864 } ) ;
865- Ok ( WorkItemResult :: NeedsFatLTO ( FatLTOInput :: Serialized { name, buffer } ) )
865+ Ok ( WorkItemResult :: NeedsFatLto ( FatLtoInput :: Serialized { name, buffer } ) )
866866 }
867- None => Ok ( WorkItemResult :: NeedsFatLTO ( FatLTOInput :: InMemory ( module) ) ) ,
867+ None => Ok ( WorkItemResult :: NeedsFatLto ( FatLtoInput :: InMemory ( module) ) ) ,
868868 } ,
869869 }
870870}
@@ -1554,12 +1554,12 @@ fn start_executing_work<B: ExtraBackendMethods>(
15541554 assert ! ( compiled_modules. is_empty( ) ) ;
15551555 needs_link. push ( module) ;
15561556 }
1557- Ok ( WorkItemResult :: NeedsFatLTO ( fat_lto_input) ) => {
1557+ Ok ( WorkItemResult :: NeedsFatLto ( fat_lto_input) ) => {
15581558 assert ! ( !started_lto) ;
15591559 assert ! ( needs_thin_lto. is_empty( ) ) ;
15601560 needs_fat_lto. push ( fat_lto_input) ;
15611561 }
1562- Ok ( WorkItemResult :: NeedsThinLTO ( name, thin_buffer) ) => {
1562+ Ok ( WorkItemResult :: NeedsThinLto ( name, thin_buffer) ) => {
15631563 assert ! ( !started_lto) ;
15641564 assert ! ( needs_fat_lto. is_empty( ) ) ;
15651565 needs_thin_lto. push ( ( name, thin_buffer) ) ;
0 commit comments