Skip to content

SwiftRemoteMirror: Add reflection metadata version query API #3419

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
merged 2 commits into from
Jul 14, 2016
Merged

SwiftRemoteMirror: Add reflection metadata version query API #3419

merged 2 commits into from
Jul 14, 2016

Conversation

bitjammer
Copy link
Contributor

Add a major/minor version API to the SwiftRemoteMirror library. These numbers will correspond to some constants emitted in Swift binaries.

rdar://problem/27251582

@bitjammer
Copy link
Contributor Author

@slavapestov Can you review? I can follow up with the IRGen change.

@@ -19,6 +19,9 @@

#include "swift/Basic/RelativePointer.h"

const uint16_t SWIFT_REFLECTION_METADATA_VERSION_MAJOR = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps we should just have a single version number. Do we expect to handle major number mismatches differently from minor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was mostly just adding it for flexibility. It could probably be one number.

@bitjammer
Copy link
Contributor Author

@swift-ci Please smoke test

@bitjammer
Copy link
Contributor Author

@swift-ci Please smoke test

Emit a 16-bit constant that tracks the version of the reflection
metadata emitted into binaries. This can be used to cross-check
what is supported by the SwiftRemoteMirror library with the new
version API.

rdar://problem/27251582
@bitjammer
Copy link
Contributor Author

@swift-ci Please smoke test

@bitjammer bitjammer merged commit 787b0dc into swiftlang:master Jul 14, 2016
@bitjammer bitjammer deleted the remote-mirror-metadata-version branch November 9, 2016 01:15
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