diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-04-07 00:58:44 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-04-07 00:58:44 +0000 |
commit | 2c69f8eec6a51114799e3e80fa4903c5e3fc429c (patch) | |
tree | 9fa488c8ce9dc402a57a02b3616aefc007bc12b8 /lib/Target/ARM/ARMISelLowering.cpp | |
parent | 1adb47cc11e708e6009007eeab58caf4310df30f (diff) |
Change -arm-divmod-libcall to a target neutral option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 6ff57522f0..d030f68528 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -72,11 +72,6 @@ ARMInterworking("arm-interworking", cl::Hidden, cl::desc("Enable / disable ARM interworking (for debugging only)"), cl::init(true)); -static cl::opt<bool> -UseDivMod("arm-divmod-libcall", cl::Hidden, - cl::desc("Use __{u}divmod libcalls for div / rem pairs"), - cl::init(false)); - void ARMTargetLowering::addTypeForNEON(EVT VT, EVT PromotedLdStVT, EVT PromotedBitwiseVT) { if (VT != PromotedLdStVT) { @@ -398,7 +393,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM) setLibcallCallingConv(RTLIB::UDIV_I32, CallingConv::ARM_AAPCS); } - if (UseDivMod) { + if (HasDivModLibcall) { setLibcallName(RTLIB::SDIVREM_I32, "__divmodsi4"); setLibcallName(RTLIB::UDIVREM_I32, "__udivmodsi4"); } |