-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add interface for lookup of externally stored field descriptors #69752
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
Add interface for lookup of externally stored field descriptors #69752
Conversation
@swift-ci smoke test |
@@ -39,13 +41,69 @@ struct BuiltinTypeDescriptorBase { | |||
virtual llvm::StringRef getMangledTypeName() = 0; | |||
}; | |||
|
|||
/// An abstract interface for a field record. |
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.
What is a FieldRecord versus a FieldDescriptor?
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.
A field descriptor describes a nominal type, it has an array of field records, which describes that type's fields.
/// Load unsubstituted field types for a nominal type. | ||
RemoteRef<FieldDescriptor> getFieldTypeInfo(const TypeRef *TR); | ||
std::unique_ptr<FieldDescriptorBase> | ||
getFieldDescriptor(const TypeRef *TR) override; |
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.
where did the comment go?
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 moved the whole function, including comment, to a private section.
This is a follow up patch that wraps field descriptors and field records in an abstract interface, and allows descriptor finders to look them up.
95ec562
to
e05e3ae
Compare
@swift-ci smoke test |
This is a follow up patch that wraps field descriptors and field records in an abstract interface, and allows descriptor finders to look them up.