This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-15
lines changed
compiler/rustc_codegen_ssa/src Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -1962,19 +1962,6 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
1962
1962
)
1963
1963
}
1964
1964
1965
- pub fn submit_pre_codegened_module_to_llvm (
1966
- & self ,
1967
- tcx : TyCtxt < ' _ > ,
1968
- module : ModuleCodegen < B :: Module > ,
1969
- ) {
1970
- self . wait_for_signal_to_codegen_item ( ) ;
1971
- self . check_for_errors ( tcx. sess ) ;
1972
-
1973
- // These are generally cheap and won't throw off scheduling.
1974
- let cost = 0 ;
1975
- submit_codegened_module_to_llvm ( & self . backend , & self . coordinator . sender , module, cost) ;
1976
- }
1977
-
1978
1965
pub fn codegen_finished ( & self , tcx : TyCtxt < ' _ > ) {
1979
1966
self . wait_for_signal_to_codegen_item ( ) ;
1980
1967
self . check_for_errors ( tcx. sess ) ;
Original file line number Diff line number Diff line change @@ -664,9 +664,16 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
664
664
)
665
665
} ) ;
666
666
667
- ongoing_codegen. submit_pre_codegened_module_to_llvm (
668
- tcx,
667
+ ongoing_codegen. wait_for_signal_to_codegen_item ( ) ;
668
+ ongoing_codegen. check_for_errors ( tcx. sess ) ;
669
+
670
+ // These modules are generally cheap and won't throw off scheduling.
671
+ let cost = 0 ;
672
+ submit_codegened_module_to_llvm (
673
+ & backend,
674
+ & ongoing_codegen. coordinator . sender ,
669
675
ModuleCodegen { name : llmod_id, module_llvm, kind : ModuleKind :: Allocator } ,
676
+ cost,
670
677
) ;
671
678
}
672
679
You can’t perform that action at this time.
0 commit comments