mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-03 11:24:18 +00:00
Temporarily disable use of divmod compiler-rt functions for iOS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -398,12 +398,6 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
|||||||
setLibcallCallingConv(RTLIB::UDIV_I32, CallingConv::ARM_AAPCS);
|
setLibcallCallingConv(RTLIB::UDIV_I32, CallingConv::ARM_AAPCS);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use divmod iOS compiler-rt calls.
|
|
||||||
if (Subtarget->getTargetTriple().getOS() == Triple::IOS) {
|
|
||||||
setLibcallName(RTLIB::SDIVREM_I32, "__divmodsi4");
|
|
||||||
setLibcallName(RTLIB::UDIVREM_I32, "__udivmodsi4");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Subtarget->isThumb1Only())
|
if (Subtarget->isThumb1Only())
|
||||||
addRegisterClass(MVT::i32, ARM::tGPRRegisterClass);
|
addRegisterClass(MVT::i32, ARM::tGPRRegisterClass);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user