rustc_llvm: expose FloatABIType target machine parameter
This commit is contained in:
parent
f95c996750
commit
fff026c8e5
4 changed files with 39 additions and 14 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue