diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-20 09:09:09 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-31 16:20:18 +1000 |
| commit | a8c71f0a15983a17ed07490feb4a195ababff439 (patch) | |
| tree | 381ff5cbca4b3179a7386ad652cfa264a99f32ac /compiler/rustc_codegen_ssa/src/back | |
| parent | dfc9d3fee67c1323c396b001197126dbcfa9890e (diff) | |
| download | rust-a8c71f0a15983a17ed07490feb4a195ababff439.tar.gz rust-a8c71f0a15983a17ed07490feb4a195ababff439.zip | |
Inline and remove `submit_pre_codegened_module_to_llvm`.
It has a single callsite, and provides little value.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/write.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index 682418f3a35..df68cf1e28b 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -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); |
