Objective-C, Darwin : Update protocol metadata to current version.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 3 Oct 2020 13:41:23 +0000 (14:41 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 11 Oct 2020 09:56:03 +0000 (10:56 +0100)
commit6224a8aa1ba46218fac36266b9cd2a746d0a4a66
treeece3a5a1de013f4680fa96f63eedff83a2648246
parentaab566a4fb69743593bf3b5bd0a48d4e33c01057
Objective-C, Darwin : Update protocol metadata to current version.

Later versions of the NeXT runtime protocol metadata contain additional
fields.  This patch adds these fields and populates a new list of
method types.

gcc/objc/ChangeLog:

* objc-next-runtime-abi-02.c (build_v2_super_template): Add new
fields to the template.
(build_v2_protocol_template): Build new field entries.
(generate_v2_meth_descriptor_table): Adjust to allow recording all
method types.
(generate_v2_meth_type_list): New.
(build_v2_protocol_initializer): Initialize the additional fields.
(generate_v2_protocols): Record method types for all entries and
generate the additional method type table.
gcc/objc/objc-next-runtime-abi-02.c