-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[core] Reduce symbol search only to when autoloading is enabled. #14287
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
Changes from all commits
984d562
c22be55
566e73c
55145f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4726,6 +4726,9 @@ TInterpreter::DeclId_t TCling::GetDataMember(ClassInfo_t *opaque_cl, const char | |
| DeclId_t d; | ||
| TClingClassInfo *cl = (TClingClassInfo*)opaque_cl; | ||
|
|
||
| // Could trigger deserialization of decls. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not understand exactly why this had to move up in the cxx file: could you perhaps clarify, please?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because the tests make
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems I can just remove this and tests still pass on my system. Can you assess if this is still needed in the latest version of the PR? Shall we try reverting it?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, it was needed on my system. |
||
| cling::Interpreter::PushTransactionRAII RAII(GetInterpreterImpl()); | ||
|
|
||
| if (cl) { | ||
| d = cl->GetDataMember(name); | ||
| // We check if the decl of the data member has an annotation which indicates | ||
|
|
@@ -4756,8 +4759,6 @@ TInterpreter::DeclId_t TCling::GetDataMember(ClassInfo_t *opaque_cl, const char | |
| LookupResult R(SemaR, DName, SourceLocation(), Sema::LookupOrdinaryName, | ||
| Sema::ForExternalRedeclaration); | ||
|
|
||
| // Could trigger deserialization of decls. | ||
| cling::Interpreter::PushTransactionRAII RAII(GetInterpreterImpl()); | ||
| cling::utils::Lookup::Named(&SemaR, R); | ||
|
|
||
| LookupResult::Filter F = R.makeFilter(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.