diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-06 20:47:11 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-06 20:47:11 +0000 |
commit | 35476334e994d15f775f187a51d6acdf9ae3c4a0 (patch) | |
tree | 173ce4bef75b0891ecf04c8cd35c197e28ccfb2e /llvm/lib/Target/ARM | |
parent | 0b5569972f4dae062a430fa0e8cedc0021b020b8 (diff) | |
download | bcm5719-llvm-35476334e994d15f775f187a51d6acdf9ae3c4a0.tar.gz bcm5719-llvm-35476334e994d15f775f187a51d6acdf9ae3c4a0.zip |
Support: split object format out of environment
This is a preliminary setup change to support a renaming of Windows target
triples. Split the object file format information out of the environment into a
separate entity. Unfortunately, file format was previously treated as an
environment with an unknown OS. This is most obvious in the ARM subtarget where
the handling for macho on an arbitrary platform switches to AAPCS rather than
APCS (as per Apple's needs).
llvm-svn: 203160
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp index 8c5847777e8..d510e7ebf10 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.cpp +++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp @@ -196,11 +196,12 @@ void ARMSubtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) { case Triple::EABIHF: case Triple::GNUEABI: case Triple::GNUEABIHF: - case Triple::MachO: TargetABI = ARM_ABI_AAPCS; break; default: - if (isTargetIOS() && isMClass()) + if ((isTargetIOS() && isMClass()) || + (TargetTriple.isOSBinFormatMachO() && + TargetTriple.getOS() == Triple::UnknownOS)) TargetABI = ARM_ABI_AAPCS; else TargetABI = ARM_ABI_APCS; |