mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
This commit is contained in:
@@ -39,8 +39,8 @@ protected:
|
||||
bool OptimizeProtocolNames = true;
|
||||
|
||||
/// If enabled, use Objective-C runtime names when mangling @objc Swift
|
||||
/// protocols.
|
||||
bool UseObjCProtocolNames = false;
|
||||
/// protocols and classes.
|
||||
bool UseObjCRuntimeNames = false;
|
||||
|
||||
/// If enabled, non-canonical types are allowed and type alias types get a
|
||||
/// special mangling.
|
||||
|
||||
Reference in New Issue
Block a user