-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[cxx-interop] Add CxxShim
library; move __swift_interopStaticCast
into it.
#59754
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
Conversation
ctx.getClangModuleLoader()->getWrapperForModule(owningModule); | ||
// Lookup our static cast helper function in the C++ shim module. | ||
auto wrapperModule = ctx.getLoadedModule(ctx.getIdentifier("CxxShim")); | ||
assert(wrapperModule && |
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.
I'll make this a diagnostic in a follow-up patch.
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.
You'll have some rebasing to do since I merged #59747 before you sent this patch 😈
LGTM except for one CMake issue.
30a9353
to
bbc2007
Compare
@swift-ci please test |
1 similar comment
@swift-ci please test |
@swift-ci please test macOS |
@swift-ci please test Windows |
f21f821
to
800bd74
Compare
@swift-ci please test |
@@ -0,0 +1 @@ | |||
@_exported import CxxShim // Clang module |
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.
This file is not used anymore, it can be removed.
@swift-ci please test windows |
800bd74
to
273065e
Compare
@swift-ci please test |
273065e
to
8cf4d3b
Compare
@swift-ci please test |
No description provided.