[Runtime/Metadata] Add support for dynamic field descriptor registration

This commit is contained in:
Pavel Yaskevich
2018-01-20 13:52:33 -08:00
parent c44ad571c8
commit 877c70bae9
9 changed files with 143 additions and 38 deletions

View File

@@ -1198,6 +1198,11 @@ FUNCTION(RegisterTypeMetadataRecords,
RETURNS(VoidTy),
ARGS(TypeMetadataRecordPtrTy, TypeMetadataRecordPtrTy),
ATTRS(NoUnwind))
FUNCTION(RegisterFieldDescriptors,
swift_registerFieldDescriptors, DefaultCC,
RETURNS(VoidTy),
ARGS(FieldDescriptorPtrPtrTy, SizeTy),
ATTRS(NoUnwind))
// void swift_beginAccess(void *pointer, ValueBuffer *scratch, size_t flags);
FUNCTION(BeginAccess, swift_beginAccess, C_CC,