Merge pull request #77115 from kubamracek/embedded-mangling-prefix

[Mangling] [NFC] Prepare for a new mangling prefix for Embedded Swift: $e
This commit is contained in:
Kuba (Brecka) Mracek
2024-12-03 08:10:49 -08:00
committed by GitHub
115 changed files with 639 additions and 388 deletions

View File

@@ -1116,7 +1116,7 @@ static StringRef calculateMangledName(SDKContext &Ctx, ValueDecl *VD) {
if (auto *attr = VD->getAttrs().getAttribute<SILGenNameAttr>()) {
return Ctx.buffer(attr->Name);
}
Mangle::ASTMangler NewMangler;
Mangle::ASTMangler NewMangler(VD->getASTContext());
return Ctx.buffer(NewMangler.mangleAnyDecl(VD, true,
/*bool respectOriginallyDefinedIn*/true));
}