Access the right triple field for IAMCU.
llvm-svn: 251396
This commit is contained in:
parent
dd9a815746
commit
d749f235ed
|
@ -854,7 +854,7 @@ public:
|
||||||
IsRetSmallStructInRegABI(RetSmallStructInRegABI),
|
IsRetSmallStructInRegABI(RetSmallStructInRegABI),
|
||||||
IsWin32StructABI(Win32StructABI),
|
IsWin32StructABI(Win32StructABI),
|
||||||
IsSoftFloatABI(SoftFloatABI),
|
IsSoftFloatABI(SoftFloatABI),
|
||||||
IsMCUABI(CGT.getTarget().getTriple().isEnvironmentIAMCU()),
|
IsMCUABI(CGT.getTarget().getTriple().isOSIAMCU()),
|
||||||
DefaultNumRegisterParameters(NumRegisterParameters) {}
|
DefaultNumRegisterParameters(NumRegisterParameters) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1533,7 +1533,7 @@ bool X86_32TargetCodeGenInfo::isStructReturnInRegABI(
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Triple.isOSDarwin() || Triple.isEnvironmentIAMCU())
|
if (Triple.isOSDarwin() || Triple.isOSIAMCU())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
switch (Triple.getOS()) {
|
switch (Triple.getOS()) {
|
||||||
|
|
Loading…
Reference in New Issue