[cfe-commits] r166430 - /cfe/trunk/lib/Basic/Targets.cpp

Daniel Dunbar daniel at zuster.org
Mon Oct 22 11:51:13 PDT 2012


Author: ddunbar
Date: Mon Oct 22 13:51:13 2012
New Revision: 166430

URL: http://llvm.org/viewvc/llvm-project?rev=166430&view=rev
Log:
driver/Darwin: Follow up to last patch, M-class CPUs are AAPCS but not EABI.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=166430&r1=166429&r2=166430&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Mon Oct 22 13:51:13 2012
@@ -3213,7 +3213,9 @@
       Builder.defineMacro("__THUMB_INTERWORK__");
 
     if (ABI == "aapcs" || ABI == "aapcs-linux") {
-      Builder.defineMacro("__ARM_EABI__");
+      // M-class CPUs on Darwin follow AAPCS, but not EABI.
+      if (!(getTriple().isOSDarwin() == llvm::Triple::IOS && CPUProfile == "M"))
+        Builder.defineMacro("__ARM_EABI__");
       Builder.defineMacro("__ARM_PCS", "1");
 
       if (!SoftFloat && !SoftFloatABI)





More information about the cfe-commits mailing list