[AST] Rename mangleDeclAsUSR -> mangleDeclWithPrefix

This is used by other things that don't necessarily want an IDE
USR.
This commit is contained in:
Hamish Knight
2025-10-23 09:11:17 +01:00
parent a1e1656ed5
commit 169096c233
6 changed files with 10 additions and 10 deletions

View File

@@ -998,7 +998,7 @@ getAccessorDeclarationName(clang::ASTContext &Ctx, NominalTypeDecl *structDecl,
std::string id;
llvm::raw_string_ostream IdStream(id);
Mangle::ASTMangler mangler(structDecl->getASTContext());
IdStream << "$" << mangler.mangleDeclAsUSR(structDecl, "") << "$"
IdStream << "$" << mangler.mangleDeclWithPrefix(structDecl, "") << "$"
<< fieldDecl->getName() << "$" << suffix;
return clang::DeclarationName(&Ctx.Idents.get(IdStream.str()));