From: Michael Kuperstein Date: Tue, 27 Oct 2015 07:46:22 +0000 (+0000) Subject: Access the right triple field for IAMCU. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=266830d97bcfd30233ab6d146ce26540c8a44f36;p=clang Access the right triple field for IAMCU. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251396 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index d7cb7ee67f..149baaadfb 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -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()) {