mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
X86: Call ulldiv and ftol2 on Windows instead of their libgcc eqivilents.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116188 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
92bf38c956
commit
335b806c62
@ -99,7 +99,11 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM)
|
||||
if (Subtarget->isTargetWindows() && !Subtarget->isTargetCygMing()) {
|
||||
// Setup Windows compiler runtime calls.
|
||||
setLibcallName(RTLIB::SDIV_I64, "_alldiv");
|
||||
setLibcallName(RTLIB::UDIV_I64, "_aulldiv");
|
||||
setLibcallName(RTLIB::FPTOUINT_F64_I64, "_ftol2");
|
||||
setLibcallCallingConv(RTLIB::SDIV_I64, CallingConv::X86_StdCall);
|
||||
setLibcallCallingConv(RTLIB::UDIV_I64, CallingConv::X86_StdCall);
|
||||
setLibcallCallingConv(RTLIB::FPTOUINT_F64_I64, CallingConv::X86_StdCall);
|
||||
}
|
||||
|
||||
if (Subtarget->isTargetDarwin()) {
|
||||
|
Loading…
Reference in New Issue
Block a user