Skip to content

Split DWARFImporterDelegate into two parts. NFC #7722

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

Conversation

adrian-prantl
Copy link

  1. SwiftDWARFImporterForClangTypes is owned by a TypeSystemSwiftTypeRef. It imports Clang types from DWARF.

  2. SwiftDWARFImporterDelegate is a swift::DWARFImporterDelegate that uses clang::ASTImporter to import a type from the TypeSystemClang used by the DWARFParser into the clang ASTContext used by one SwiftASTContext's ClangImporter.

This is in preparation for creating more flexible SwiftASTContexts in the future.

1. SwiftDWARFImporterForClangTypes is owned by a TypeSystemSwiftTypeRef.
   It imports Clang types from DWARF.

2. SwiftDWARFImporterDelegate is a swift::DWARFImporterDelegate that uses
   clang::ASTImporter to import a type from the TypeSystemClang used by
   the DWARFParser into the clang ASTContext used by one SwiftASTContext's
   ClangImporter.

This is in preparation for creating more flexible SwiftASTContexts in the future.
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit ac9bb6a into swiftlang:stable/20230725 Nov 1, 2023
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