diff options
author | Cameron Esfahani <dirty@apple.com> | 2013-08-29 20:23:14 +0000 |
---|---|---|
committer | Cameron Esfahani <dirty@apple.com> | 2013-08-29 20:23:14 +0000 |
commit | 441c557708b5dbe91f1799baf790ad418c23ea70 (patch) | |
tree | 07017978679109c2e45a6669ff163cf87ee1c609 /lib/Target/ARM/ARMISelLowering.cpp | |
parent | 9071f68fd2b18abaee614e07ae6da6d8bc34426e (diff) | |
download | external_llvm-441c557708b5dbe91f1799baf790ad418c23ea70.tar.gz external_llvm-441c557708b5dbe91f1799baf790ad418c23ea70.tar.bz2 external_llvm-441c557708b5dbe91f1799baf790ad418c23ea70.zip |
Clean up some usage of Triple. The base class has methods for determining if the target is iOS and Linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 063f1d46c7..df9c78a60d 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/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"); |