Skip to content

[lldb] Add Foundation._NSSwiftTimeZone support #7657

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

kastiglione
Copy link

Cherry pick the two missing commits from #7074.

@objc classes can be used from ObjC. In those cases, the Swift runtime is used. This
change implements the handling of @objc classes in the Swift language runtime.

(cherry picked from commit b4e30b7)
@kastiglione
Copy link
Author

@swift-ci test

ConstString("timeZone"),
ConstString("_timeZone"),
ConstString("some"),
ConstString("identifier"),

Choose a reason for hiding this comment

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

This almost looks like some leftover debugging code?

Copy link
Author

Choose a reason for hiding this comment

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

It's not debugging code. That's the variable path that contains the time zone's name (effectively timeZone._timeZone.identifier).

Choose a reason for hiding this comment

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

Oh right .some is the enumerator for Optional!
"some identifier" just sounded like a placeholder :-)

`_NSSwiftTimeZone` is the new Swift implementation of `NSTimeZone`.

(cherry picked from commit 666003e)
@kastiglione kastiglione force-pushed the lldb-Add-Foundation._NSSwiftTimeZone-support branch from 8e6b4a0 to 11ecea5 Compare October 20, 2023 23:33
@kastiglione
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl self-requested a review October 23, 2023 16:19
@adrian-prantl
Copy link

Can you cherry-pick this to 5.9 and 5.10?

@kastiglione
Copy link
Author

@swift-ci test windows

2 similar comments
@kastiglione
Copy link
Author

@swift-ci test windows

@adrian-prantl
Copy link

@swift-ci test windows

@kastiglione kastiglione merged commit 19a3035 into stable/20230725 Nov 7, 2023
@kastiglione kastiglione deleted the lldb-Add-Foundation._NSSwiftTimeZone-support branch November 7, 2023 19:59
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