Skip to content

Commit 14527b2

Browse files
committed
Move target machine factory error reporting into codegen backend
1 parent e4e725a commit 14527b2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ impl ExtraBackendMethods for GccCodegenBackend {
374374
_features: &[String],
375375
) -> TargetMachineFactoryFn<Self> {
376376
// TODO(antoyo): set opt level.
377-
Arc::new(|_| Ok(()))
377+
Arc::new(|_, _| ())
378378
}
379379
}
380380

@@ -421,7 +421,6 @@ unsafe impl Sync for SyncContext {}
421421
impl WriteBackendMethods for GccCodegenBackend {
422422
type Module = GccContext;
423423
type TargetMachine = ();
424-
type TargetMachineError = ();
425424
type ModuleBuffer = ModuleBuffer;
426425
type ThinData = ThinData;
427426
type ThinBuffer = ThinBuffer;

0 commit comments

Comments
 (0)