[PPC64] Helpers for read/write an instr while relocating a half16 type. [NFC]
authorSean Fertile <sfertile@ca.ibm.com>
Mon, 17 Sep 2018 20:27:00 +0000 (20:27 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Mon, 17 Sep 2018 20:27:00 +0000 (20:27 +0000)
commiteed3e43e54eefb7bcd79d2f630ebb667c30d7688
tree9871b3a6b61d7f4c7f3ef4c62c879786c38dc198
parent4305993c89defbb7b5dda2685cf92e1d5512dd23
[PPC64] Helpers for read/write an instr while relocating a half16 type. [NFC]

There are a growing number of places when we either want to read or write an
instruction when handling a half16 relocation type. On big-endian the buffer
pointer is pointing into the middle of the word we want and on little-endian it
is pointing to the start of the word. These 2 helpers are to simplify reading
and writing in these contexts.

Differential Revision: https://reviews.llvm.org/D52115

llvm-svn: 342410
lld/ELF/Arch/PPC64.cpp