File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
test/stdlib/Inputs/SwiftObjectNSObject Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -100,11 +100,11 @@ IDENTIFIER(stringValue)
100
100
IDENTIFIER(super)
101
101
IDENTIFIER(superDecoder)
102
102
IDENTIFIER(superEncoder)
103
- #if __APPLE__ && !SWIFT_DARWIN_ENABLE_STABLE_ABI_BIT
103
+ #if SWIFT_DARWIN_ENABLE_STABLE_ABI_BIT
104
+ IDENTIFIER_WITH_NAME (SwiftObject, " _TtCs12_SwiftObject" )
105
+ #else
104
106
// Pre-stable ABI uses un-mangled name for SwiftObject.
105
107
IDENTIFIER (SwiftObject)
106
- #else
107
- IDENTIFIER_WITH_NAME (SwiftObject, " _TtCs12_SwiftObject" )
108
108
#endif
109
109
IDENTIFIER (to)
110
110
IDENTIFIER(toRaw)
Original file line number Diff line number Diff line change 30
30
31
31
#if SWIFT_OBJC_INTEROP
32
32
33
- #if __APPLE__ && !SWIFT_DARWIN_ENABLE_STABLE_ABI_BIT
34
- // Pre-stable ABI uses un-mangled name for SwiftObject
35
- #else
33
+ #if SWIFT_DARWIN_ENABLE_STABLE_ABI_BIT
36
34
// Source code: "SwiftObject"
37
35
// Real class name: mangled "Swift._SwiftObject"
38
36
#define SwiftObject _TtCs12_SwiftObject
37
+ #else
38
+ // Pre-stable ABI uses un-mangled name for SwiftObject
39
39
#endif
40
40
41
41
#if __has_attribute(objc_root_class)
Original file line number Diff line number Diff line change 52
52
53
53
// Add methods to class SwiftObject that can be called by performSelector: et al
54
54
55
- #if __APPLE__ && !SWIFT_DARWIN_ENABLE_STABLE_ABI_BIT
56
- // Pre-stable ABI uses un-mangled name for SwiftObject.
57
- #define SwiftObjectDemangledName " SwiftObject"
58
- #else
55
+ #if SWIFT_DARWIN_ENABLE_STABLE_ABI_BIT
59
56
// mangled Swift._SwiftObject
60
57
#define SwiftObject _TtCs12_SwiftObject
61
58
#define SwiftObjectDemangledName " Swift._SwiftObject"
59
+ #else
60
+ // Pre-stable ABI uses un-mangled name for SwiftObject.
61
+ #define SwiftObjectDemangledName " SwiftObject"
62
62
#endif
63
63
64
64
@interface SwiftObject /* trust me, I know what I'm doing */ @end
You can’t perform that action at this time.
0 commit comments