AST: New mangling for method dispatch thunks

This commit is contained in:
Slava Pestov
2017-11-08 18:14:11 -08:00
parent 1e6bec0633
commit 78ad6c4577
9 changed files with 23 additions and 0 deletions

View File

@@ -686,6 +686,10 @@ std::string SILDeclRef::mangle(ManglingKind MKind) const {
case SILDeclRef::ManglingKind::DynamicThunk:
SKind = ASTMangler::SymbolKind::DynamicThunk;
break;
case SILDeclRef::ManglingKind::SwiftDispatchThunk:
assert(!isForeign && !isDirectReference && !isCurried);
SKind = ASTMangler::SymbolKind::SwiftDispatchThunk;
break;
}
switch (kind) {