about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/lib.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-07-21 08:38:28 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-07-31 16:21:02 +1000
commit4a120f33f78961808875460048e6fc4d4e8ba532 (patch)
tree0ac33eb5fd54cbc33e11338ecb7c8e7aa372976f /compiler/rustc_codegen_llvm/src/lib.rs
parente78fb95dfa40ee9fdf1997009e572fb7ce737080 (diff)
downloadrust-4a120f33f78961808875460048e6fc4d4e8ba532.tar.gz
rust-4a120f33f78961808875460048e6fc4d4e8ba532.zip
Remove `ExtraBackendMethods::spawn_thread`.
It's no longer used, and `spawn_named_thread` is preferable, because
naming threads is helpful when profiling.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/lib.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/rustc_codegen_llvm/src/lib.rs b/compiler/rustc_codegen_llvm/src/lib.rs
index bb264db22d9..a1b1dcb1278 100644
--- a/compiler/rustc_codegen_llvm/src/lib.rs
+++ b/compiler/rustc_codegen_llvm/src/lib.rs
@@ -141,18 +141,6 @@ impl ExtraBackendMethods for LlvmCodegenBackend {
         back::write::target_machine_factory(sess, optlvl, target_features)
     }
 
-    fn spawn_thread<F, T>(time_trace: bool, f: F) -> std::thread::JoinHandle<T>
-    where
-        F: FnOnce() -> T,
-        F: Send + 'static,
-        T: Send + 'static,
-    {
-        std::thread::spawn(move || {
-            let _profiler = TimeTraceProfiler::new(time_trace);
-            f()
-        })
-    }
-
     fn spawn_named_thread<F, T>(
         time_trace: bool,
         name: String,