@@ -166,26 +166,6 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
166
166
addBypassSlowDiv(64, 32);
167
167
}
168
168
169
- // Setup Windows compiler runtime calls.
170
- if (Subtarget.isTargetWindowsMSVC() || Subtarget.isTargetWindowsItanium()) {
171
- static const struct {
172
- const RTLIB::Libcall Op;
173
- const char * const Name;
174
- const CallingConv::ID CC;
175
- } LibraryCalls[] = {
176
- { RTLIB::SDIV_I64, "_alldiv", CallingConv::X86_StdCall },
177
- { RTLIB::UDIV_I64, "_aulldiv", CallingConv::X86_StdCall },
178
- { RTLIB::SREM_I64, "_allrem", CallingConv::X86_StdCall },
179
- { RTLIB::UREM_I64, "_aullrem", CallingConv::X86_StdCall },
180
- { RTLIB::MUL_I64, "_allmul", CallingConv::X86_StdCall },
181
- };
182
-
183
- for (const auto &LC : LibraryCalls) {
184
- setLibcallName(LC.Op, LC.Name);
185
- setLibcallCallingConv(LC.Op, LC.CC);
186
- }
187
- }
188
-
189
169
if (Subtarget.canUseCMPXCHG16B())
190
170
setMaxAtomicSizeInBitsSupported(128);
191
171
else if (Subtarget.canUseCMPXCHG8B())
@@ -532,6 +512,8 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
532
512
setOperationAction(ISD::EH_SJLJ_SETJMP, MVT::i32, Custom);
533
513
setOperationAction(ISD::EH_SJLJ_LONGJMP, MVT::Other, Custom);
534
514
setOperationAction(ISD::EH_SJLJ_SETUP_DISPATCH, MVT::Other, Custom);
515
+
516
+ // FIXME: This should be set in RuntimeLibcallsInfo
535
517
if (TM.Options.ExceptionModel == ExceptionHandling::SjLj)
536
518
setLibcallName(RTLIB::UNWIND_RESUME, "_Unwind_SjLj_Resume");
537
519
0 commit comments