1
Fork 0

Inline and remove submit_pre_codegened_module_to_llvm.

It has a single callsite, and provides little value.
This commit is contained in:
Nicholas Nethercote 2023-07-20 09:09:09 +10:00
parent dfc9d3fee6
commit a8c71f0a15
2 changed files with 9 additions and 15 deletions

View file

@ -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,
);
}