Skip to content

[lldb] Support reconstructing types compiled with a different abi name #8605

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

Conversation

augusto2112
Copy link

Support expression evaluation for types in modules that were compiled with the -module-abi-name flag. These types have have the ABI module name serialized in debug information and the regular module name in the swift module.

rdar://126719253

@augusto2112
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.

This is excellent, thanks! Only a couple minor nits inside.

@@ -4619,6 +4643,32 @@ SwiftASTContext::ReconstructType(ConstString mangled_typename) {
"\" was not found");
}

llvm::Expected<swift::TypeBase *>
SwiftASTContext::ReconstructType(ConstString mangled_typename) {

Choose a reason for hiding this comment

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

Unless we need a ConstString later anyway, maybe this should now take a StringRef?

Copy link
Author

Choose a reason for hiding this comment

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

A lot of the helper functions used in ReconstructType take a ConstString, so I don't think that's work changing right now.

@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

@swift-ci test Windows

@adrian-prantl
Copy link

@swift-ci test windows

@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

@swift-ci test windows

Support expression evaluation for types in modules that were compiled
with the -module-abi-name flag. These types have have the ABI module
name serialized in debug information and the regular module name in the
swift module.

rdar://126719253
@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

@swift-ci test windows

@augusto2112
Copy link
Author

@swift-ci Windows

@augusto2112
Copy link
Author

@swift-ci test windows

@adrian-prantl adrian-prantl merged commit 39f3a11 into swiftlang:swift/release/6.0 Apr 25, 2024
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