[llvm-commits] [llvm] r116801 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Tue Oct 19 00:32:52 PDT 2010
Author: mspencer
Date: Tue Oct 19 02:32:52 2010
New Revision: 116801
URL: http://llvm.org/viewvc/llvm-project?rev=116801&view=rev
Log:
X86: Add MS-CRT libcalls.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=116801&r1=116800&r2=116801&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Oct 19 02:32:52 2010
@@ -101,9 +101,11 @@
setLibcallName(RTLIB::SDIV_I64, "_alldiv");
setLibcallName(RTLIB::UDIV_I64, "_aulldiv");
setLibcallName(RTLIB::FPTOUINT_F64_I64, "_ftol2");
+ setLibcallName(RTLIB::FPTOUINT_F32_I64, "_ftol2");
setLibcallCallingConv(RTLIB::SDIV_I64, CallingConv::X86_StdCall);
setLibcallCallingConv(RTLIB::UDIV_I64, CallingConv::X86_StdCall);
setLibcallCallingConv(RTLIB::FPTOUINT_F64_I64, CallingConv::X86_StdCall);
+ setLibcallCallingConv(RTLIB::FPTOUINT_F32_I64, CallingConv::X86_StdCall);
}
if (Subtarget->isTargetDarwin()) {
More information about the llvm-commits
mailing list