diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-10-08 21:21:24 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-10-08 21:21:24 +0000 |
commit | 5fe279e7274e129258545897b9cc999d7f23e292 (patch) | |
tree | e839d6c144be528ede55a076a4014868c0e6a114 /llvm/lib/Target/ARM/ARMSubtarget.h | |
parent | 239ab3c03f58f3af794929eab5001e915dea49c1 (diff) | |
download | bcm5719-llvm-5fe279e7274e129258545897b9cc999d7f23e292.tar.gz bcm5719-llvm-5fe279e7274e129258545897b9cc999d7f23e292.zip |
Add Triple::isAndroid().
This is a simple refactoring that replaces Triple.getEnvironment()
checks for Android with Triple.isAndroid().
llvm-svn: 249750
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h index 554c7899496..ad546c1b14c 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.h +++ b/llvm/lib/Target/ARM/ARMSubtarget.h @@ -383,7 +383,7 @@ public: TargetTriple.getEnvironment() == Triple::GNUEABI || TargetTriple.getEnvironment() == Triple::EABIHF || TargetTriple.getEnvironment() == Triple::GNUEABIHF || - TargetTriple.getEnvironment() == Triple::Android) && + isTargetAndroid()) && !isTargetDarwin() && !isTargetWindows(); } @@ -393,9 +393,7 @@ public: TargetTriple.getEnvironment() == Triple::EABIHF || isTargetWindows(); } - bool isTargetAndroid() const { - return TargetTriple.getEnvironment() == Triple::Android; - } + bool isTargetAndroid() const { return TargetTriple.isAndroid(); } bool isAPCS_ABI() const; bool isAAPCS_ABI() const; |