Inline and remove submit_pre_codegened_module_to_llvm
.
It has a single callsite, and provides little value.
This commit is contained in:
parent
dfc9d3fee6
commit
a8c71f0a15
@ -1962,19 +1962,6 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
|
||||
)
|
||||
}
|
||||
|
||||
pub fn submit_pre_codegened_module_to_llvm(
|
||||
&self,
|
||||
tcx: TyCtxt<'_>,
|
||||
module: ModuleCodegen<B::Module>,
|
||||
) {
|
||||
self.wait_for_signal_to_codegen_item();
|
||||
self.check_for_errors(tcx.sess);
|
||||
|
||||
// These are generally cheap and won't throw off scheduling.
|
||||
let cost = 0;
|
||||
submit_codegened_module_to_llvm(&self.backend, &self.coordinator.sender, module, cost);
|
||||
}
|
||||
|
||||
pub fn codegen_finished(&self, tcx: TyCtxt<'_>) {
|
||||
self.wait_for_signal_to_codegen_item();
|
||||
self.check_for_errors(tcx.sess);
|
||||
|
@ -664,9 +664,16 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
|
||||
)
|
||||
});
|
||||
|
||||
ongoing_codegen.submit_pre_codegened_module_to_llvm(
|
||||
tcx,
|
||||
ongoing_codegen.wait_for_signal_to_codegen_item();
|
||||
ongoing_codegen.check_for_errors(tcx.sess);
|
||||
|
||||
// These modules are generally cheap and won't throw off scheduling.
|
||||
let cost = 0;
|
||||
submit_codegened_module_to_llvm(
|
||||
&backend,
|
||||
&ongoing_codegen.coordinator.sender,
|
||||
ModuleCodegen { name: llmod_id, module_llvm, kind: ModuleKind::Allocator },
|
||||
cost,
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user