mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Reflection: ProtocolTypeRefs now store a mangled name
This is better for field metadata lookups. Clients that want the module name and decl name can demangle, just like they do with NominalTypeRefs.
This commit is contained in:
@@ -246,7 +246,9 @@ public:
|
||||
return FunctionType::get(input, output, einfo);
|
||||
}
|
||||
|
||||
Type createProtocolType(StringRef moduleName, StringRef protocolName) {
|
||||
Type createProtocolType(StringRef mangledName,
|
||||
StringRef moduleName,
|
||||
StringRef protocolName) {
|
||||
auto module = Ctx.getModuleByName(moduleName);
|
||||
if (!module) return Type();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user