Skip to content

[NFC] Hide LoadedModules From Clients of ASTContext #32418

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
Jun 17, 2020

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Jun 16, 2020

No description provided.

There's no reason clients need to be able to access this data directly.
It obscures where module loading is actually happening, and makes it too
easy to accidentally register a module with the wrong identifier in the
context.

Hide the registration operations behind opaque accessors.
@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 16, 2020

@swift-ci smoke test

CodaFi added a commit to CodaFi/llvm-project that referenced this pull request Jun 16, 2020
@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 16, 2020

swiftlang/llvm-project#1346

@swift-ci smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 17, 2020

@CodaFi CodaFi merged commit 6d2d668 into swiftlang:master Jun 17, 2020
@CodaFi CodaFi deleted the load-time-lift branch June 17, 2020 04:19
CodaFi added a commit to swiftlang/llvm-project that referenced this pull request Jun 17, 2020
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