diff options
| author | Matt Ickstadt <mattico8@gmail.com> | 2021-04-08 00:00:47 -0500 |
|---|---|---|
| committer | Matt Ickstadt <mattico8@gmail.com> | 2021-04-09 10:16:04 -0500 |
| commit | e258a5ba6ecb2b64b838f1fa80f5ba134265a35b (patch) | |
| tree | efbdb43e01edaae9da9290bdb0d1f659fffb7c44 /compiler/rustc_codegen_llvm/src/llvm | |
| parent | 361bfce305b8829eda7f3d133fe82a118685de1f (diff) | |
| download | rust-e258a5ba6ecb2b64b838f1fa80f5ba134265a35b.tar.gz rust-e258a5ba6ecb2b64b838f1fa80f5ba134265a35b.zip | |
Categorize and explain target features support
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 70f78c07c65..54a8249b175 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -2128,7 +2128,13 @@ extern "C" { pub fn LLVMRustHasFeature(T: &TargetMachine, s: *const c_char) -> bool; pub fn LLVMRustPrintTargetCPUs(T: &TargetMachine); - pub fn LLVMRustPrintTargetFeatures(T: &TargetMachine); + pub fn LLVMRustGetTargetFeaturesCount(T: &TargetMachine) -> size_t; + pub fn LLVMRustGetTargetFeature( + T: &TargetMachine, + Index: size_t, + Feature: &mut *const c_char, + Desc: &mut *const c_char, + ); pub fn LLVMRustGetHostCPUName(len: *mut usize) -> *const c_char; pub fn LLVMRustCreateTargetMachine( |
