compiler: change Conv to CanonAbi
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use rustc_abi::{HasDataLayout, TyAbiInterface};
|
||||
use rustc_abi::{ArmCall, CanonAbi, HasDataLayout, TyAbiInterface};
|
||||
|
||||
use crate::callconv::{ArgAbi, Conv, FnAbi, Reg, RegKind, Uniform};
|
||||
use crate::callconv::{ArgAbi, FnAbi, Reg, RegKind, Uniform};
|
||||
use crate::spec::HasTargetSpec;
|
||||
|
||||
fn is_homogeneous_aggregate<'a, Ty, C>(cx: &C, arg: &mut ArgAbi<'a, Ty>) -> Option<Uniform>
|
||||
@@ -90,7 +90,7 @@ where
|
||||
// If this is a target with a hard-float ABI, and the function is not explicitly
|
||||
// `extern "aapcs"`, then we must use the VFP registers for homogeneous aggregates.
|
||||
let vfp = cx.target_spec().llvm_target.ends_with("hf")
|
||||
&& fn_abi.conv != Conv::ArmAapcs
|
||||
&& fn_abi.conv != CanonAbi::Arm(ArmCall::Aapcs)
|
||||
&& !fn_abi.c_variadic;
|
||||
|
||||
if !fn_abi.ret.is_ignore() {
|
||||
|
||||
@@ -3,8 +3,8 @@ use std::str::FromStr;
|
||||
use std::{fmt, iter};
|
||||
|
||||
use rustc_abi::{
|
||||
AddressSpace, Align, BackendRepr, ExternAbi, HasDataLayout, Primitive, Reg, RegKind, Scalar,
|
||||
Size, TyAbiInterface, TyAndLayout,
|
||||
AddressSpace, Align, BackendRepr, CanonAbi, ExternAbi, HasDataLayout, Primitive, Reg, RegKind,
|
||||
Scalar, Size, TyAbiInterface, TyAndLayout,
|
||||
};
|
||||
use rustc_macros::HashStable_Generic;
|
||||
|
||||
@@ -606,7 +606,7 @@ pub struct FnAbi<'a, Ty> {
|
||||
/// This can be used to know whether an argument is variadic or not.
|
||||
pub fixed_count: u32,
|
||||
/// The calling convention of this function.
|
||||
pub conv: Conv,
|
||||
pub conv: CanonAbi,
|
||||
/// Indicates if an unwind may happen across a call to this function.
|
||||
pub can_unwind: bool,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user