]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_llvm/src/lib.rs
Get rid of native_library projection queries
[rust.git] / compiler / rustc_codegen_llvm / src / lib.rs
index 15bfa8430460fb338e0fbbc6f6bbe4759ca68ef6..89c7e51d09ec1affd65e17bb73aa5317b5921723 100644 (file)
@@ -131,12 +131,6 @@ fn target_machine_factory(
     ) -> TargetMachineFactoryFn<Self> {
         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>
     where
@@ -170,7 +164,6 @@ fn spawn_named_thread<F, T>(
 impl WriteBackendMethods for LlvmCodegenBackend {
     type Module = ModuleLlvm;
     type ModuleBuffer = back::lto::ModuleBuffer;
-    type Context = llvm::Context;
     type TargetMachine = &'static mut llvm::TargetMachine;
     type ThinData = back::lto::ThinData;
     type ThinBuffer = back::lto::ThinBuffer;