diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-09-29 20:53:06 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-09-30 20:07:54 +1000 |
| commit | cd40bbfe2965a42ae8336ebd70fc7fb9c81d22e0 (patch) | |
| tree | 911cd6cc8a8394c7233a04763f4096379e80d89f /compiler/rustc_codegen_llvm/src/llvm/ffi.rs | |
| parent | 29b7717de23f3969ceeb5bef5b01d9223f807655 (diff) | |
| download | rust-cd40bbfe2965a42ae8336ebd70fc7fb9c81d22e0.tar.gz rust-cd40bbfe2965a42ae8336ebd70fc7fb9c81d22e0.zip | |
Move `MetadataKindId` into its own submodule
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index afd2991a09c..83867cc2dce 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -29,6 +29,7 @@ use super::debuginfo::{ DITemplateTypeParameter, DIType, DebugEmissionKind, DebugNameTableKind, }; use crate::llvm; +use crate::llvm::MetadataKindId; /// In the LLVM-C API, boolean values are passed as `typedef int LLVMBool`, /// which has a different ABI from Rust or C++ `bool`. @@ -1035,16 +1036,6 @@ pub(crate) type GetSymbolsCallback = unsafe extern "C" fn(*mut c_void, *const c_char) -> *mut c_void; pub(crate) type GetSymbolsErrorCallback = unsafe extern "C" fn(*const c_char) -> *mut c_void; -#[derive(Copy, Clone)] -#[repr(transparent)] -pub(crate) struct MetadataKindId(c_uint); - -impl From<MetadataType> for MetadataKindId { - fn from(value: MetadataType) -> Self { - Self(value as c_uint) - } -} - unsafe extern "C" { // Create and destroy contexts. pub(crate) fn LLVMContextDispose(C: &'static mut Context); |
