Skip to content

Commit f338500

Browse files
authored
Rollup merge of #144503 - bjorn3:lto_refactors3, r=petrochenkov
Various refactors to the codegen coordinator code (part 3) Continuing from rust-lang/rust#144062 this removes an option without any known users, uses the object crate in favor of LLVM for getting the LTO bitcode and improves the coordinator channel handling.
2 parents 3fa116c + e1d36b7 commit f338500

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

src/back/write.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use gccjit::{Context, OutputKind};
44
use rustc_codegen_ssa::back::link::ensure_removed;
55
use rustc_codegen_ssa::back::write::{BitcodeSection, CodegenContext, EmitObj, ModuleConfig};
66
use rustc_codegen_ssa::{CompiledModule, ModuleCodegen};
7-
use rustc_errors::DiagCtxtHandle;
87
use rustc_fs_util::link_or_copy;
98
use rustc_session::config::OutputType;
109
use rustc_span::fatal_error::FatalError;
@@ -258,14 +257,6 @@ pub(crate) fn codegen(
258257
))
259258
}
260259

261-
pub(crate) fn link(
262-
_cgcx: &CodegenContext<GccCodegenBackend>,
263-
_dcx: DiagCtxtHandle<'_>,
264-
mut _modules: Vec<ModuleCodegen<GccContext>>,
265-
) -> Result<ModuleCodegen<GccContext>, FatalError> {
266-
unimplemented!();
267-
}
268-
269260
pub(crate) fn save_temp_bitcode(
270261
cgcx: &CodegenContext<GccCodegenBackend>,
271262
_module: &ModuleCodegen<GccContext>,

src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -426,14 +426,6 @@ impl WriteBackendMethods for GccCodegenBackend {
426426
fn serialize_module(_module: ModuleCodegen<Self::Module>) -> (String, Self::ModuleBuffer) {
427427
unimplemented!();
428428
}
429-
430-
fn run_link(
431-
cgcx: &CodegenContext<Self>,
432-
dcx: DiagCtxtHandle<'_>,
433-
modules: Vec<ModuleCodegen<Self::Module>>,
434-
) -> Result<ModuleCodegen<Self::Module>, FatalError> {
435-
back::write::link(cgcx, dcx, modules)
436-
}
437429
}
438430

439431
/// This is the entrypoint for a hot plugged rustc_codegen_gccjit

0 commit comments

Comments
 (0)