Access the right triple field for IAMCU.

llvm-svn: 251396
This commit is contained in:
Michael Kuperstein 2015-10-27 07:46:22 +00:00
parent dd9a815746
commit d749f235ed
1 changed files with 2 additions and 2 deletions

View File

@ -854,7 +854,7 @@ public:
IsRetSmallStructInRegABI(RetSmallStructInRegABI),
IsWin32StructABI(Win32StructABI),
IsSoftFloatABI(SoftFloatABI),
IsMCUABI(CGT.getTarget().getTriple().isEnvironmentIAMCU()),
IsMCUABI(CGT.getTarget().getTriple().isOSIAMCU()),
DefaultNumRegisterParameters(NumRegisterParameters) {}
};
@ -1533,7 +1533,7 @@ bool X86_32TargetCodeGenInfo::isStructReturnInRegABI(
return true;
}
if (Triple.isOSDarwin() || Triple.isEnvironmentIAMCU())
if (Triple.isOSDarwin() || Triple.isOSIAMCU())
return true;
switch (Triple.getOS()) {