]> granicus.if.org Git - clang/commitdiff
Access the right triple field for IAMCU.
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Tue, 27 Oct 2015 07:46:22 +0000 (07:46 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Tue, 27 Oct 2015 07:46:22 +0000 (07:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251396 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index d7cb7ee67ffac792e8e338daac9356b21d8b071f..149baaadfbb945392e8af16b9b47699f73689025 100644 (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()) {