Skip to content

Commit feaac59

Browse files
committed
Remove unused code from rustc_codegen_*
1 parent 49d4a75 commit feaac59

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

compiler/rustc_codegen_llvm/src/llvm/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,6 @@ pub fn SetUnnamedAddress(global: &'a Value, unnamed: UnnamedAddr) {
118118
}
119119
}
120120

121-
pub fn set_thread_local(global: &'a Value, is_thread_local: bool) {
122-
unsafe {
123-
LLVMSetThreadLocal(global, is_thread_local as Bool);
124-
}
125-
}
126121
pub fn set_thread_local_mode(global: &'a Value, mode: ThreadLocalMode) {
127122
unsafe {
128123
LLVMSetThreadLocalMode(global, mode);

compiler/rustc_codegen_ssa/src/back/write.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,8 +1531,6 @@ fn start_executing_work<B: ExtraBackendMethods>(
15311531
}
15321532
}
15331533

1534-
pub const CODEGEN_WORKER_ID: usize = usize::MAX;
1535-
15361534
/// `FatalError` is explicitly not `Send`.
15371535
#[must_use]
15381536
pub struct WorkerFatalError;

compiler/rustc_codegen_ssa/src/base.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,6 @@ fn get_argc_argv<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
479479
}
480480
}
481481

482-
pub const CODEGEN_WORKER_ID: usize = usize::MAX;
483-
484482
pub fn codegen_crate<B: ExtraBackendMethods>(
485483
backend: B,
486484
tcx: TyCtxt<'tcx>,

0 commit comments

Comments
 (0)