diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-07-27 11:52:56 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-27 11:52:56 +0900 |
| commit | 7f608e99dcc0704769c6e4e523da16591848b2fe (patch) | |
| tree | 9a1b7662a44fb7c4301b65ae7c8e1bb4459c91f0 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | fe51d07b99b662e7f839c2a7eac9588e701bf8f0 (diff) | |
| parent | 017e1726ff658117f43854181fb75c6b26a53b88 (diff) | |
| download | rust-7f608e99dcc0704769c6e4e523da16591848b2fe.tar.gz rust-7f608e99dcc0704769c6e4e523da16591848b2fe.zip | |
Rollup merge of #99759 - bjorn3:remove_llvm_dead_code, r=nikic
Remove dead code from cg_llvm Found while working on https://github.com/rust-lang/rust/pull/97485
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index fffc2dd2b84..ef1a65488e2 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -88,10 +88,6 @@ extern "C" char *LLVMRustGetLastError(void) { return Ret; } -extern "C" unsigned int LLVMRustGetInstructionCount(LLVMModuleRef M) { - return unwrap(M)->getInstructionCount(); -} - extern "C" void LLVMRustSetLastError(const char *Err) { free((void *)LastError); LastError = strdup(Err); @@ -1529,11 +1525,6 @@ extern "C" void LLVMRustSetComdat(LLVMModuleRef M, LLVMValueRef V, } } -extern "C" void LLVMRustUnsetComdat(LLVMValueRef V) { - GlobalObject *GV = unwrap<GlobalObject>(V); - GV->setComdat(nullptr); -} - enum class LLVMRustLinkage { ExternalLinkage = 0, AvailableExternallyLinkage = 1, |
