diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-15 07:32:29 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-15 07:32:29 +0900 |
| commit | 022d20759baa6ebc9dcbe803aec1f19216c47d7f (patch) | |
| tree | d57199f3c4a32c27132387b159fbd01377c9fc05 /compiler/rustc_codegen_llvm | |
| parent | 35210a66edcbea56765493bb6e85e55659b21e59 (diff) | |
| parent | 215cd36e1cff1806429806cb5be81f6d1a5f98b0 (diff) | |
| download | rust-022d20759baa6ebc9dcbe803aec1f19216c47d7f.tar.gz rust-022d20759baa6ebc9dcbe803aec1f19216c47d7f.zip | |
Rollup merge of #77739 - est31:remove_unused_code, r=petrochenkov,varkor
Remove unused code Rustc has a builtin lint for detecting unused code inside a crate, but when an item is marked `pub`, the code, even if unused inside the entire workspace, is never marked as such. Therefore, I've built [warnalyzer](https://github.com/est31/warnalyzer) to detect unused items in a cross-crate setting. Closes https://github.com/est31/warnalyzer/issues/2
Diffstat (limited to 'compiler/rustc_codegen_llvm')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/mod.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/mod.rs b/compiler/rustc_codegen_llvm/src/llvm/mod.rs index ed9b99188bb..53a404ee019 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/mod.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/mod.rs @@ -118,11 +118,6 @@ pub fn SetUnnamedAddress(global: &'a Value, unnamed: UnnamedAddr) { } } -pub fn set_thread_local(global: &'a Value, is_thread_local: bool) { - unsafe { - LLVMSetThreadLocal(global, is_thread_local as Bool); - } -} pub fn set_thread_local_mode(global: &'a Value, mode: ThreadLocalMode) { unsafe { LLVMSetThreadLocalMode(global, mode); |
