diff options
| author | Tim Northover <tnorthover@apple.com> | 2016-05-13 21:26:45 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2016-05-13 21:26:45 +0000 |
| commit | 862eaf8a12d62898469e1169c1bb5d1fa7b1e30b (patch) | |
| tree | acd876f58184bf1b31cbf232d5f04030d8c82a0d /clang/lib | |
| parent | 963a6d9c69c9d18b57543f751d5de05f9578dc1d (diff) | |
| download | bcm5719-llvm-862eaf8a12d62898469e1169c1bb5d1fa7b1e30b.tar.gz bcm5719-llvm-862eaf8a12d62898469e1169c1bb5d1fa7b1e30b.zip | |
ARM-MachO: stop claiming to be EABI
Embedded ARM MachO targets are AAPCS but not full EABI (we don't use
__aeabi_whatever and the functions are allowed to be hard-float).
Turns out there was already a test for this, but its original purpose had
become corrupted over the years.
llvm-svn: 269487
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Basic/Targets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 4ca67ac08ca..0d882bddf14 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -5067,7 +5067,7 @@ public: if (ABI == "aapcs" || ABI == "aapcs-linux" || ABI == "aapcs-vfp") { // Embedded targets on Darwin follow AAPCS, but not EABI. // Windows on ARM follows AAPCS VFP, but does not conform to EABI. - if (!getTriple().isOSDarwin() && !getTriple().isOSWindows()) + if (!getTriple().isOSBinFormatMachO() && !getTriple().isOSWindows()) Builder.defineMacro("__ARM_EABI__"); Builder.defineMacro("__ARM_PCS", "1"); } |

