-
Notifications
You must be signed in to change notification settings - Fork 341
[lldb][NFC] Expose GetReflectionContext in SwiftLanguageRuntime's API #7658
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
[lldb][NFC] Expose GetReflectionContext in SwiftLanguageRuntime's API #7658
Conversation
std::recursive_mutex &mutex) | ||
: m_reflection_ctx(reflection_ctx), m_lock(mutex, std::adopt_lock) {} | ||
|
||
static ThreadSafeReflectionContext MakeInvalid() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrian-prantl @kastiglione I'm not really happy with this, but it's required for returning the "empty" case in the stub language runtime. If you have any ideas on how to make this better I'd be happy to listen.
} // namespace swift | ||
|
||
namespace lldb_private { | ||
struct SwiftMetadataCache; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format
cd003f3
to
c00b71b
Compare
@swift-ci test |
c00b71b
to
c3b8af3
Compare
@swift-ci test |
This is in preparation for building type infos from DWARF, which will need access to the reflection context and it's builder.
c3b8af3
to
41a8e85
Compare
@swift-ci test |
@augusto2112 I'm seeing the build fail on Windows after this change:
I think the following implies a copy construction, which is not generated because of ThreadSafeReflectionContext GetReflectionContext() {
STUB_LOG();
return ThreadSafeReflectionContext::MakeInvalid();
} |
This is in preparation for building type infos from DWARF, which will need access to the reflection context and it's builder.