@@ -755,15 +755,6 @@ pub enum FatLTOInput<B: WriteBackendMethods> {
755755 InMemory ( ModuleCodegen < B :: Module > ) ,
756756}
757757
758- impl < B : WriteBackendMethods > FatLTOInput < B > {
759- fn name ( & ' a self ) -> & ' a String {
760- match self {
761- FatLTOInput :: Serialized { name, buffer : _ } => & name,
762- FatLTOInput :: InMemory ( module) => & module. name ,
763- }
764- }
765- }
766-
767758fn execute_work_item < B : ExtraBackendMethods > (
768759 cgcx : & CodegenContext < B > ,
769760 work_item : WorkItem < B > ,
@@ -1354,15 +1345,10 @@ fn start_executing_work<B: ExtraBackendMethods>(
13541345 assert ! ( !started_lto) ;
13551346 started_lto = true ;
13561347
1357- let mut needs_fat_lto: Vec < FatLTOInput < B > > = mem:: take ( & mut needs_fat_lto) ;
1348+ let needs_fat_lto = mem:: take ( & mut needs_fat_lto) ;
13581349 let needs_thin_lto = mem:: take ( & mut needs_thin_lto) ;
13591350 let import_only_modules = mem:: take ( & mut lto_import_only_modules) ;
13601351
1361- // Regardless of what order these modules completed in, report them to
1362- // the backend in the same order every time to ensure that we're handing
1363- // out deterministic results.
1364- needs_fat_lto. sort_by ( |m1, m2| m1. name ( ) . cmp ( m2. name ( ) ) ) ;
1365-
13661352 for ( work, cost) in generate_lto_work ( & cgcx, needs_fat_lto,
13671353 needs_thin_lto, import_only_modules) {
13681354 let insertion_index = work_items
0 commit comments