Skip to content

Commit 1fcc636

Browse files
Rollup merge of #157050 - bjorn3:lto_refactors19, r=lqd
Couple of changes to help with moving LTO to the link phase Part of rust-lang/compiler-team#908
2 parents 09e03d4 + 8959aa4 commit 1fcc636

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,7 @@ fn new_context<'gcc, 'tcx>(tcx: TyCtxt<'tcx>) -> Context<'gcc> {
339339
}
340340

341341
impl ExtraBackendMethods for GccCodegenBackend {
342-
fn supports_parallel(&self) -> bool {
343-
false
344-
}
342+
type Module = GccContext;
345343

346344
fn codegen_allocator(
347345
&self,
@@ -424,6 +422,10 @@ impl WriteBackendMethods for GccCodegenBackend {
424422
type ModuleBuffer = ModuleBuffer;
425423
type ThinData = ();
426424

425+
fn supports_parallel(&self) -> bool {
426+
false
427+
}
428+
427429
fn target_machine_factory(
428430
&self,
429431
_sess: &Session,

0 commit comments

Comments
 (0)