Files
swift-mirror/test/IRGen/Inputs/objc_runtime_name_clang_attr.h
Joe Groff fe1186447b IRGen: Generate runtime type manglings using ObjC runtime names.
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.
2020-03-05 16:55:00 -08:00

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