[Objective-C, NeXT ABI] Identify V2 IVAR refs by metadata.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 10 Oct 2019 19:04:33 +0000 (19:04 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Thu, 10 Oct 2019 19:04:33 +0000 (19:04 +0000)
commiteb870e5e5ed4d5b784533d23afee637543e7dacc
tree5c45bb0827a72450841153743607a532a3218d43
parentd102b039463a39f0baf66a223300f9440dbb04d2
[Objective-C, NeXT ABI]  Identify V2 IVAR refs by metadata.

For the NeXT 64b ABI, IVAR refs are supposed to be indirected for
Mach-O PIC.  Identify them so that we can act as needed.

gcc/objc/ChangeLog:

2019-10-10  Iain Sandoe  <iain@sandoe.co.uk>

* objc-next-metadata-tags.h (OCTI_RT_META_IVAR_REF): New.
(meta_ivar_ref): New.
* objc-next-runtime-abi-02.c
(next_runtime_abi_02_init_metadata_attributes): Create the
IVAR ref metadata identifier.
(ivar_offset_ref): Tag IVAR refs with specific metadata.

From-SVN: r276847
gcc/objc/ChangeLog
gcc/objc/objc-next-metadata-tags.h
gcc/objc/objc-next-runtime-abi-02.c