diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-12-20 18:26:50 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-12-20 18:26:50 +0000 |
commit | afff941211526a31f931aa9fcac84ae42ff60ef0 (patch) | |
tree | d7d5033f40668d97aaa1753a1fdf4414282658d7 /lib/Target/ARM/ARMSubtarget.h | |
parent | d7c9e08b6bcf15655919960e214b9b91677cdde9 (diff) |
ARM target code clean up. Check for iOS, not Darwin where it makes sense.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.h')
-rw-r--r-- | lib/Target/ARM/ARMSubtarget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h index a35f450550..85479a5e1c 100644 --- a/lib/Target/ARM/ARMSubtarget.h +++ b/lib/Target/ARM/ARMSubtarget.h @@ -218,6 +218,7 @@ protected: const Triple &getTargetTriple() const { return TargetTriple; } + bool isTargetIOS() const { return TargetTriple.getOS() == Triple::IOS; } bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); } bool isTargetNaCl() const { return TargetTriple.getOS() == Triple::NativeClient; |