diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-05-22 12:54:30 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-05-22 12:54:30 +0000 |
| commit | e5c6f4c304ff7688f25306092b59aede6936c55a (patch) | |
| tree | ee82da3c5ab0e9d0cbbbe158d0ce46ac99275d2e /clang/lib/Driver/Tools.cpp | |
| parent | 36ce1e056cf174119d4529ccc45e7b545a6f8107 (diff) | |
| download | bcm5719-llvm-e5c6f4c304ff7688f25306092b59aede6936c55a.tar.gz bcm5719-llvm-e5c6f4c304ff7688f25306092b59aede6936c55a.zip | |
MachO: perform ARM ABI detection even for non-Darwin triples.
When "-arch armv7m" is specified, we want "aapcs", for example.
rdar://problem/16581138
llvm-svn: 209434
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 534afc5a0d5..e51cb1b2795 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -771,7 +771,7 @@ void Clang::AddARMTargetArgs(const ArgList &Args, const char *ABIName = nullptr; if (Arg *A = Args.getLastArg(options::OPT_mabi_EQ)) { ABIName = A->getValue(); - } else if (Triple.isOSDarwin()) { + } else if (Triple.isOSBinFormatMachO()) { // The backend is hardwired to assume AAPCS for M-class processors, ensure // the frontend matches that. if (Triple.getEnvironment() == llvm::Triple::EABI || |

