In libobjc/: 2011-05-25 Richard Frith-Macdonald <rfm@gnu.org> David Ayers <ayers...
commitb5a3450ff739b14e31b4f3c16e5d27d4f540d42c
authorRichard Frith-Macdonald <rfm@gnu.org>
Wed, 25 May 2011 18:54:40 +0000 (25 18:54 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Wed, 25 May 2011 18:54:40 +0000 (25 18:54 +0000)
treed5003b409f0b36b5352537e57004be8d3bde3e2c
parentdeaf34a90b437dc0e1e461c9ad36014491df5080
In libobjc/: 2011-05-25 Richard Frith-Macdonald <rfm@gnu.org> David Ayers <ayers@fsfe.org>

In libobjc/:
2011-05-25  Richard Frith-Macdonald <rfm@gnu.org>
    David Ayers  <ayers@fsfe.org>

PR libobjc/38037
* sendmsg.c: Include objc/hash.h.
(get_implementation): New function, mostly with code from get_imp
updated to support the new +initialize dispatch table logic.
(get_imp): Use get_implementation.
(__objc_responds_to): Updated to support the new +initialize
dispatch table logic.
(class_respondsToSelector): Likewise.
(objc_msg_lookup): Use get_implementation.
(__objc_init_install_dtable): Removed.
(__objc_install_methods_in_dtable): Updated arguments.
(__objc_install_dispatch_table_for_class): Renamed to
__objc_install_dtable_for_class and updated to support the new
+initialize dispatch table logic.
(__objc_update_dispatch_table_for_class): Updated to support the
new +initialize dispatch table logic.
(__objc_forward): Call get_implementation instead of get_imp.
(prepared_dtable_table): New.
(__objc_prepare_dtable_for_class): New.
(__objc_prepared_dtable_for_class): New.
(__objc_get_prepared_imp): New.
(__objc_install_prepared_dtable_for_class): New.

Co-Authored-By: David Ayers <ayers@fsfe.org>
From-SVN: r174221
libobjc/ChangeLog
libobjc/sendmsg.c