File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ Param returnTypeHelper(Ret (*)(Param)) {}
62
62
// Helper macro that defines one entrypoint that takes the parameter in reg and
63
63
// calls through to function.
64
64
#define CUSTOM_RR_ENTRYPOINTS_DEFINE_ONE_ENTRYPOINT (reg, function ) \
65
- extern " C " SWIFT_RUNTIME_EXPORT decltype (function( \
65
+ SWIFT_RUNTIME_EXPORT decltype (function( \
66
66
nullptr )) function##_x##reg() { \
67
67
decltype (returnTypeHelper (function)) ptr; \
68
68
asm (" .ifnc %0, x" #reg " \n " \
Original file line number Diff line number Diff line change 26
26
#include " llvm/ADT/StringRef.h"
27
27
#include " swift/Basic/Lazy.h"
28
28
#include " swift/Runtime/Casting.h"
29
+ #include " swift/Runtime/CustomRRABI.h"
29
30
#include " swift/Runtime/Debug.h"
30
31
#include " swift/Runtime/EnvironmentVariables.h"
31
32
#include " swift/Runtime/Heap.h"
@@ -616,6 +617,8 @@ static bool isBridgeObjectTaggedPointer(void *object) {
616
617
#endif
617
618
}
618
619
620
+ CUSTOM_RR_ENTRYPOINTS_DEFINE_ENTRYPOINTS (swift_bridgeObjectRetain)
621
+
619
622
SWIFT_RUNTIME_EXPORT
620
623
void *swift::swift_nonatomic_bridgeObjectRetain(void *object) {
621
624
#if SWIFT_OBJC_INTEROP
@@ -656,6 +659,8 @@ static bool isBridgeObjectTaggedPointer(void *object) {
656
659
#endif
657
660
}
658
661
662
+ CUSTOM_RR_ENTRYPOINTS_DEFINE_ENTRYPOINTS (swift_bridgeObjectRelease)
663
+
659
664
void swift::swift_nonatomic_bridgeObjectRelease(void *object) {
660
665
#if SWIFT_OBJC_INTEROP
661
666
if (isObjCTaggedPointer (object) || isBridgeObjectTaggedPointer (object))
Original file line number Diff line number Diff line change 6
6
// UNSUPPORTED: use_os_stdlib
7
7
// UNSUPPORTED: back_deployment_runtime
8
8
9
- // REQUIRES: rdar102783074
10
-
11
9
import StdlibUnittest
12
10
13
11
// A class that can provider a retainable pointer and determine whether it's
You can’t perform that action at this time.
0 commit comments