Skip to content

Commit 8959aa4

Browse files
committed
Support implementing ExtraBackendMethods and WriteBackendMethods independently
1 parent f8725cd commit 8959aa4

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
@@ -335,9 +335,7 @@ fn new_context<'gcc, 'tcx>(tcx: TyCtxt<'tcx>) -> Context<'gcc> {
335335
}
336336

337337
impl ExtraBackendMethods for GccCodegenBackend {
338-
fn supports_parallel(&self) -> bool {
339-
false
340-
}
338+
type Module = GccContext;
341339

342340
fn codegen_allocator(
343341
&self,
@@ -420,6 +418,10 @@ impl WriteBackendMethods for GccCodegenBackend {
420418
type ModuleBuffer = ModuleBuffer;
421419
type ThinData = ();
422420

421+
fn supports_parallel(&self) -> bool {
422+
false
423+
}
424+
423425
fn target_machine_factory(
424426
&self,
425427
_sess: &Session,

0 commit comments

Comments
 (0)