diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-30 18:10:59 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-12-30 18:10:59 +0100 |
| commit | fff026c8e572809cfce7202ec1ad63897b72c5b0 (patch) | |
| tree | c1a4c0985ca258669a00ccdb3804f2011ac62d2e /compiler/rustc_codegen_llvm/src/llvm/ffi.rs | |
| parent | f95c9967506712bdf8e86b08d8b17accbde2d985 (diff) | |
| download | rust-fff026c8e572809cfce7202ec1ad63897b72c5b0.tar.gz rust-fff026c8e572809cfce7202ec1ad63897b72c5b0.zip | |
rustc_llvm: expose FloatABIType target machine parameter
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 9a2bfd95562..128a147963b 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -526,7 +526,7 @@ pub struct SanitizerOptions { pub sanitize_kernel_address_recover: bool, } -/// LLVMRelocMode +/// LLVMRustRelocModel #[derive(Copy, Clone, PartialEq)] #[repr(C)] pub enum RelocModel { @@ -538,6 +538,15 @@ pub enum RelocModel { ROPI_RWPI, } +/// LLVMRustFloatABI +#[derive(Copy, Clone, PartialEq)] +#[repr(C)] +pub enum FloatAbi { + Default, + Soft, + Hard, +} + /// LLVMRustCodeModel #[derive(Copy, Clone)] #[repr(C)] @@ -2192,7 +2201,7 @@ unsafe extern "C" { Model: CodeModel, Reloc: RelocModel, Level: CodeGenOptLevel, - UseSoftFP: bool, + FloatABIType: FloatAbi, FunctionSections: bool, DataSections: bool, UniqueSectionNames: bool, |
