mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
In order for the runtime demangler to be able to find ObjC classes and protocols, it needs to have the runtime name of the declaration be in the mangled name. Only do this for runtime manglings, to minimize the potential ABI impact for symbol names that already have the source-level names of ObjC entities baked in. Fixes SR-12169 | rdar://59306590.
12 lines
239 B
Objective-C
12 lines
239 B
Objective-C
@import Foundation;
|
|
|
|
__attribute__((objc_runtime_name("ObjCRuntimeNameIsDifferent")))
|
|
@interface ObjCRuntimeNamed: NSObject
|
|
|
|
@end
|
|
|
|
__attribute__((objc_runtime_name("ObjCProtoRuntimeNameIsDifferent")))
|
|
@protocol ObjCProtoRuntimeNamed
|
|
|
|
@end
|