Skip to content

Make the warmup of the SwiftASTContext cache lazy (NFC) #3324

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 4, 2021

Conversation

adrian-prantl
Copy link

This is in preparations for later refactorings. The (pointless) effect
right now is that in 99% of the cases the cache warmup is now delayed
until the ProcessModule loop.

rdar://81717792

This is in preparations for later refactorings. The (pointless) effect
right now is that in 99% of the cases the cache warmup is now delayed
until the ProcessModule loop.

rdar://81717792
@adrian-prantl adrian-prantl merged commit db51d58 into swiftlang:stable/20210726 Oct 4, 2021
auto val_or_err =
module_sp->GetTypeSystemForLanguage(lldb::eLanguageTypeSwift);
if (!val_or_err) {
llvm::consumeError(val_or_err.takeError());

Choose a reason for hiding this comment

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

what kind of errors might these be? I am wondering whether we should log these.

Copy link
Author

Choose a reason for hiding this comment

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

If I read llvm::Expected<TypeSystem &> TypeSystemMap::GetTypeSystemForLanguage(lldb::LanguageType language, Module *module, bool can_create) { right, it never returns an error.

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