@@ -24,7 +24,7 @@ def isNotOSMSVCRT : RuntimeLibcallPredicate<"!TT.isOSMSVCRT()">;
24
24
def isPS : RuntimeLibcallPredicate<"TT.isPS()">;
25
25
def isNotOSWindowsOrIsCygwinMinGW
26
26
: RuntimeLibcallPredicate<"!TT.isOSWindows() || TT.isOSCygMing()">;
27
-
27
+ def isAndroid : RuntimeLibcallPredicate<"TT.isAndroid()">;
28
28
29
29
def isGNUEnvironment : RuntimeLibcallPredicate<"TT.isGNUEnvironment()">;
30
30
def darwinHasSinCosStret : RuntimeLibcallPredicate<"darwinHasSinCosStret(TT)">;
@@ -1135,6 +1135,8 @@ defvar LibmHasLdexpF80 = LibcallImpls<(add ldexp_f80), isNotOSWindowsOrIsCygwinM
1135
1135
defvar LibmHasFrexpF128 = LibcallImpls<(add frexp_f128), isNotOSWindowsOrIsCygwinMinGW>;
1136
1136
defvar LibmHasLdexpF128 = LibcallImpls<(add ldexp_f128), isNotOSWindowsOrIsCygwinMinGW>;
1137
1137
1138
+ defvar LibcSafestackPointerAddress =
1139
+ LibcallImpls<(add __safestack_pointer_address), isAndroid>;
1138
1140
1139
1141
//===----------------------------------------------------------------------===//
1140
1142
// Objective-C Runtime Libcalls
@@ -1211,7 +1213,8 @@ def AArch64SystemLibrary : SystemRuntimeLibrary<
1211
1213
LibcallImpls<(add Int128RTLibcalls), isAArch64_ILP64>,
1212
1214
LibcallImpls<(add bzero), isOSDarwin>,
1213
1215
DarwinExp10, DarwinSinCosStret,
1214
- LibmHasSinCosF32, LibmHasSinCosF64, LibmHasSinCosF128)
1216
+ LibmHasSinCosF32, LibmHasSinCosF64, LibmHasSinCosF128,
1217
+ LibcSafestackPointerAddress)
1215
1218
>;
1216
1219
1217
1220
// Prepend a # to every name
@@ -1482,6 +1485,7 @@ def ARMSystemLibrary
1482
1485
AEABIDivRemCalls,
1483
1486
DarwinSinCosStret, DarwinExp10,
1484
1487
LibmHasSinCosF32, LibmHasSinCosF64, LibmHasSinCosF128,
1488
+ LibcSafestackPointerAddress,
1485
1489
1486
1490
// Use divmod compiler-rt calls for iOS 5.0 and later.
1487
1491
LibcallImpls<(add __divmodsi4, __udivmodsi4),
@@ -2125,7 +2129,8 @@ defvar X86CommonLibcalls =
2125
2129
// FIXME: MSVCRT doesn't have powi. The f128 case is added as a
2126
2130
// hack for one test relying on it.
2127
2131
__powitf2_f128,
2128
- LibcallImpls<(add MostPowI), isNotOSMSVCRT>
2132
+ LibcallImpls<(add MostPowI), isNotOSMSVCRT>,
2133
+ LibcSafestackPointerAddress
2129
2134
);
2130
2135
2131
2136
defvar Windows32DivRemMulCalls =
0 commit comments