Skip to content

[lldb] Remove use of SwiftASTContext in GetPointerByteSize (#6654) #6786

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

Conversation

kastiglione
Copy link

When TypeSystemSwiftTypeRef instance doesn't correspond to a Module, it should have a Target. Either are sufficient to get the pointer size. This avoids loading and constructing Swift ASTContexts, which can be slow and unnecessary in this case.

(cherry-picked from commit 97f6808)

When `TypeSystemSwiftTypeRef` instance doesn't correspond to a `Module`, it should have a `Target`. Either are sufficient to get the pointer size. This avoids loading and constructing Swift ASTContexts, which can be slow and unnecessary in this case.

(cherry-picked from commit 97f6808)
@kastiglione kastiglione merged commit 3b0fdbb into next May 5, 2023
@kastiglione kastiglione deleted the dl/lldb-Remove-use-of-SwiftASTContext-in-GetPointerByteSize-6654 branch May 5, 2023 17:07
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.

1 participant