r251396 - Access the right triple field for IAMCU.
Michael Kuperstein via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 27 00:46:44 PDT 2015
Author: mkuper
Date: Tue Oct 27 02:46:22 2015
New Revision: 251396
URL: http://llvm.org/viewvc/llvm-project?rev=251396&view=rev
Log:
Access the right triple field for IAMCU.
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=251396&r1=251395&r2=251396&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Tue Oct 27 02:46:22 2015
@@ -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::isStructRe
return true;
}
- if (Triple.isOSDarwin() || Triple.isEnvironmentIAMCU())
+ if (Triple.isOSDarwin() || Triple.isOSIAMCU())
return true;
switch (Triple.getOS()) {
More information about the cfe-commits
mailing list