summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-04-20 22:20:12 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-04-20 22:20:12 +0000
commit5f1ba4cd2de8a82f6fe2e42b7fef46a8e055c46b (patch)
tree8083f34a93a031d276986ba25288e4af6efe7135 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parent86e53ced08beca7b2333e7c0a52427eae5b2499e (diff)
downloadbcm5719-llvm-5f1ba4cd2de8a82f6fe2e42b7fef46a8e055c46b.tar.gz
bcm5719-llvm-5f1ba4cd2de8a82f6fe2e42b7fef46a8e055c46b.zip
Remove -use-divmod-libcall. Let targets opt in when they are available.
llvm-svn: 129884
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 50dd4091070..2d555cd7828 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -398,7 +398,8 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
setLibcallCallingConv(RTLIB::UDIV_I32, CallingConv::ARM_AAPCS);
}
- if (HasDivModLibcall) {
+ // Use divmod iOS compiler-rt calls.
+ if (Subtarget->getTargetTriple().getOS() == Triple::IOS) {
setLibcallName(RTLIB::SDIVREM_I32, "__divmodsi4");
setLibcallName(RTLIB::UDIVREM_I32, "__udivmodsi4");
}
OpenPOWER on IntegriCloud