diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-02-24 14:28:50 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-02-24 15:11:29 +0000 |
| commit | 241c83f0c7877815b592a276bb13af57fbb8d7fc (patch) | |
| tree | e5291e4707067b23ced5cce0688d497dcecd8c0b /compiler/rustc_codegen_llvm/src/context.rs | |
| parent | 29440b84a9f1eb216ce3c937bbd9cc126078a437 (diff) | |
| download | rust-241c83f0c7877815b592a276bb13af57fbb8d7fc.tar.gz rust-241c83f0c7877815b592a276bb13af57fbb8d7fc.zip | |
Deduplicate more functions between `SimpleCx` and `CodegenCx`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index 6a7c042e03a..c3f8f60eb5e 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -8,7 +8,6 @@ use std::str; use rustc_abi::{HasDataLayout, Size, TargetDataLayout, VariantIdx}; use rustc_codegen_ssa::back::versioned_llvm_target; use rustc_codegen_ssa::base::{wants_msvc_seh, wants_wasm_eh}; -use rustc_codegen_ssa::common::TypeKind; use rustc_codegen_ssa::errors as ssa_errors; use rustc_codegen_ssa::traits::*; use rustc_data_structures::base_n::{ALPHANUMERIC_ONLY, ToBaseN}; @@ -682,10 +681,6 @@ impl<'ll> SimpleCx<'ll> { llvm::LLVMMDStringInContext2(self.llcx, name.as_ptr() as *const c_char, name.len()) }) } - - pub(crate) fn type_kind(&self, ty: &'ll Type) -> TypeKind { - unsafe { llvm::LLVMRustGetTypeKind(ty).to_generic() } - } } impl<'ll, 'tcx> MiscCodegenMethods<'tcx> for CodegenCx<'ll, 'tcx> { |
