mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Rename mangleDeclAsUSR -> mangleDeclWithPrefix
This is used by other things that don't necessarily want an IDE USR.
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user