summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-01-06 12:00:44 +0000
committerTim Northover <tnorthover@apple.com>2014-01-06 12:00:44 +0000
commit8e27a6b1d389e08e29fd705452eaef9702feb076 (patch)
tree15900f6903e4b815341dcf13152fe5e8729f9651 /lib
parenta56ae89d22828cbf9202b60db5d1d8f17d8f85b8 (diff)
downloadllvm-8e27a6b1d389e08e29fd705452eaef9702feb076.tar.gz
llvm-8e27a6b1d389e08e29fd705452eaef9702feb076.tar.bz2
llvm-8e27a6b1d389e08e29fd705452eaef9702feb076.tar.xz
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMSubtarget.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h
index 8c471dcfd1..d1433ecade 100644
--- a/lib/Target/ARM/ARMSubtarget.h
+++ b/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 {