File tree 3 files changed +4
-4
lines changed
rustc_codegen_cranelift/src/driver
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ fn reuse_workproduct_for_cgu(
85
85
work_products : & mut FxHashMap < WorkProductId , WorkProduct > ,
86
86
) -> CompiledModule {
87
87
let mut object = None ;
88
- let work_product = cgu. work_product ( tcx) ;
88
+ let work_product = cgu. previous_work_product ( tcx) ;
89
89
if let Some ( saved_file) = & work_product. saved_file {
90
90
let obj_out =
91
91
tcx. output_filenames ( ( ) ) . temp_path ( OutputType :: Object , Some ( cgu. name ( ) . as_str ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -700,7 +700,7 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
700
700
& ongoing_codegen. coordinator_send ,
701
701
CachedModuleCodegen {
702
702
name : cgu. name ( ) . to_string ( ) ,
703
- source : cgu. work_product ( tcx) ,
703
+ source : cgu. previous_work_product ( tcx) ,
704
704
} ,
705
705
) ;
706
706
true
@@ -711,7 +711,7 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
711
711
& ongoing_codegen. coordinator_send ,
712
712
CachedModuleCodegen {
713
713
name : cgu. name ( ) . to_string ( ) ,
714
- source : cgu. work_product ( tcx) ,
714
+ source : cgu. previous_work_product ( tcx) ,
715
715
} ,
716
716
) ;
717
717
true
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ impl<'tcx> CodegenUnit<'tcx> {
336
336
WorkProductId :: from_cgu_name ( self . name ( ) . as_str ( ) )
337
337
}
338
338
339
- pub fn work_product ( & self , tcx : TyCtxt < ' _ > ) -> WorkProduct {
339
+ pub fn previous_work_product ( & self , tcx : TyCtxt < ' _ > ) -> WorkProduct {
340
340
let work_product_id = self . work_product_id ( ) ;
341
341
tcx. dep_graph
342
342
. previous_work_product ( & work_product_id)
You can’t perform that action at this time.
0 commit comments