Skip to content

Commit 013b3eb

Browse files
committed
Remove support for -Zcombine-cgu
Nobody seems to actually use this, while still adding some extra complexity to the already rather complex codegen coordinator code. It is also not supported by any backend other than the LLVM backend.
1 parent a4ac1e4 commit 013b3eb

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

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)