mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Remove unused target_cpu and tune_cpu methods from ExtraBackendMethods
This commit is contained in:
parent
c431ea681c
commit
a3cc67c796
@ -171,15 +171,6 @@ impl ExtraBackendMethods for GccCodegenBackend {
|
|||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn target_cpu<'b>(&self, _sess: &'b Session) -> &'b str {
|
|
||||||
unimplemented!();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn tune_cpu<'b>(&self, _sess: &'b Session) -> Option<&'b str> {
|
|
||||||
None
|
|
||||||
// TODO(antoyo)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct ModuleBuffer;
|
pub struct ModuleBuffer;
|
||||||
|
@ -131,12 +131,6 @@ impl ExtraBackendMethods for LlvmCodegenBackend {
|
|||||||
) -> TargetMachineFactoryFn<Self> {
|
) -> TargetMachineFactoryFn<Self> {
|
||||||
back::write::target_machine_factory(sess, optlvl, target_features)
|
back::write::target_machine_factory(sess, optlvl, target_features)
|
||||||
}
|
}
|
||||||
fn target_cpu<'b>(&self, sess: &'b Session) -> &'b str {
|
|
||||||
llvm_util::target_cpu(sess)
|
|
||||||
}
|
|
||||||
fn tune_cpu<'b>(&self, sess: &'b Session) -> Option<&'b str> {
|
|
||||||
llvm_util::tune_cpu(sess)
|
|
||||||
}
|
|
||||||
|
|
||||||
fn spawn_thread<F, T>(time_trace: bool, f: F) -> std::thread::JoinHandle<T>
|
fn spawn_thread<F, T>(time_trace: bool, f: F) -> std::thread::JoinHandle<T>
|
||||||
where
|
where
|
||||||
|
@ -134,8 +134,6 @@ pub trait ExtraBackendMethods: CodegenBackend + WriteBackendMethods + Sized + Se
|
|||||||
opt_level: config::OptLevel,
|
opt_level: config::OptLevel,
|
||||||
target_features: &[String],
|
target_features: &[String],
|
||||||
) -> TargetMachineFactoryFn<Self>;
|
) -> TargetMachineFactoryFn<Self>;
|
||||||
fn target_cpu<'b>(&self, sess: &'b Session) -> &'b str;
|
|
||||||
fn tune_cpu<'b>(&self, sess: &'b Session) -> Option<&'b str>;
|
|
||||||
|
|
||||||
fn spawn_thread<F, T>(_time_trace: bool, f: F) -> std::thread::JoinHandle<T>
|
fn spawn_thread<F, T>(_time_trace: bool, f: F) -> std::thread::JoinHandle<T>
|
||||||
where
|
where
|
||||||
|
Loading…
Reference in New Issue
Block a user