diff options
author | Tim Northover <tnorthover@apple.com> | 2014-01-06 12:00:44 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-01-06 12:00:44 +0000 |
commit | 7649ebacd6f15c6f9226bc007d67839b1f5cc9d7 (patch) | |
tree | d11323402123e8afc7562072cce7c52dbf75c3d5 /llvm/lib/Target/ARM | |
parent | b9fa512954b1cd89958bdbd34b53329d6887e859 (diff) | |
download | bcm5719-llvm-7649ebacd6f15c6f9226bc007d67839b1f5cc9d7.tar.gz bcm5719-llvm-7649ebacd6f15c6f9226bc007d67839b1f5cc9d7.zip |
ARM: keep special non-AEABIness of "-darwin-eabi" triples for now
Longer term, we want to move users to "*-*-*-macho" for embedded work, but for
now people are relying on the last thing we told them, which is unfortunately
"*-*-darwin-eabi".
rdar://problem/15703934
llvm-svn: 198602
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h index 8c471dcfd1a..d1433ecade5 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.h +++ b/llvm/lib/Target/ARM/ARMSubtarget.h @@ -317,9 +317,12 @@ public: // FIXME: Add a flag for bare-metal for that target and set Triple::EABI // even for GNUEABI, so we can make a distinction here and still conform to // the EABI on GNU (and Android) mode. This requires change in Clang, too. + // FIXME: The Darwin exception is temporary, while we move users to + // "*-*-*-macho" triples as quickly as possible. bool isTargetAEABI() const { - return TargetTriple.getEnvironment() == Triple::EABI || - TargetTriple.getEnvironment() == Triple::EABIHF; + return (TargetTriple.getEnvironment() == Triple::EABI || + TargetTriple.getEnvironment() == Triple::EABIHF) && + !isTargetDarwin(); } bool isTargetHardFloat() const { |