Skip to content

ABI Checker: include mangled names in ABI descriptor files #39846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

nkcsgexi
Copy link
Contributor

Previously, we were using USR as a delegate for mangled names. However, USR won't incorporate name changes made
by attributes like @_silgen_name. Instead, we should add a dedicated field for mangled names.

rdar://84202064

@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

@nkcsgexi nkcsgexi requested a review from DougGregor October 20, 2021 22:44
} else if (auto Dtor = dyn_cast<DestructorDecl>(VD)) {
return Ctx.buffer(NewMangler.mangleDestructorEntity(Dtor, false));
} else if (auto TD = dyn_cast<TypeDecl>(VD)) {
return Ctx.buffer(NewMangler.mangleLocalTypeDecl(TD));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all types are local types, should we do the "local type" check here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I've refactored this function into ASTMangler so we could cover all types.

@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

Previously, we use USR as a delegate for mangled name. However, USR won't incorporate name changes made
by attributes like @_silgen_name. Instead, we should add a dedicated field for canonical mangled names.

rdar://84202064
@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants