diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-11-02 12:40:28 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-11-02 23:39:29 +1100 |
| commit | 90f2075b66c778f8270be86ec34c54ae43831dad (patch) | |
| tree | cfd9ffa3d9986992ca293f16ed550c65fd29b3f2 /compiler/rustc_codegen_llvm/src/llvm/ffi.rs | |
| parent | 0fa86f966062a66f46b6471310d07e00b701e398 (diff) | |
| download | rust-90f2075b66c778f8270be86ec34c54ae43831dad.tar.gz rust-90f2075b66c778f8270be86ec34c54ae43831dad.zip | |
Port most of `LLVMRustPrintTargetCPUs` to Rust
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 0c0e3b92e59..d84ae8d8836 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -2190,12 +2190,8 @@ unsafe extern "C" { pub fn LLVMRustHasFeature(T: &TargetMachine, s: *const c_char) -> bool; - pub fn LLVMRustPrintTargetCPUs( - T: &TargetMachine, - cpu: *const c_char, - print: unsafe extern "C" fn(out: *mut c_void, string: *const c_char, len: usize), - out: *mut c_void, - ); + #[allow(improper_ctypes)] + pub(crate) fn LLVMRustPrintTargetCPUs(TM: &TargetMachine, OutStr: &RustString); pub fn LLVMRustGetTargetFeaturesCount(T: &TargetMachine) -> size_t; pub fn LLVMRustGetTargetFeature( T: &TargetMachine, |
