Skip to content

[lldb][swift] Don't search all images in SwiftASTContext::LoadLibrary UsingPaths #2619

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
Mar 8, 2021

Conversation

Teemperor
Copy link

We only want to check if there is already a matching module but not which modules
actually match our ModuleSpec. Use the proper method that will return once if
finds the first match. This saves us from checking all loaded modules for every
library.

…UsingPaths

We only want to check if there is already a matching module but not which modules
actually match our ModuleSpec. Use the proper method that will return once if
finds the first match. This saves us from checking all loaded modules for every
library.
@Teemperor Teemperor requested a review from adrian-prantl March 5, 2021 13:08
@Teemperor
Copy link
Author

@swift-ci test

Copy link

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

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

Nice!

@adrian-prantl
Copy link

Less code and faster.

@Teemperor
Copy link
Author

@swift-ci test

@Teemperor Teemperor merged commit 4afdf8a into swiftlang:swift/main Mar 8, 2021
@kastiglione
Copy link

nice

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.

3 participants