summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorCameron Esfahani <dirty@apple.com>2013-08-29 20:23:14 +0000
committerCameron Esfahani <dirty@apple.com>2013-08-29 20:23:14 +0000
commit943908b78d3bd6c967c51c6fd5aac187e784e4f5 (patch)
tree172d8690719c54a13f7106f627754898ee5fc791 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parent8d362a999e0b471d7eff822a09b0ac3485703276 (diff)
downloadbcm5719-llvm-943908b78d3bd6c967c51c6fd5aac187e784e4f5.tar.gz
bcm5719-llvm-943908b78d3bd6c967c51c6fd5aac187e784e4f5.zip
Clean up some usage of Triple. The base class has methods for determining if the target is iOS and Linux.
llvm-svn: 189604
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 063f1d46c7d..df9c78a60d3 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -421,7 +421,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
}
// Use divmod compiler-rt calls for iOS 5.0 and later.
- if (Subtarget->getTargetTriple().getOS() == Triple::IOS &&
+ if (Subtarget->getTargetTriple().isiOS() &&
!Subtarget->getTargetTriple().isOSVersionLT(5, 0)) {
setLibcallName(RTLIB::SDIVREM_I32, "__divmodsi4");
setLibcallName(RTLIB::UDIVREM_I32, "__udivmodsi4");
OpenPOWER on IntegriCloud