[lld] r250297 - [ELF2][mips] Support both big and little endian MIPS 32-bit targets
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 13:25:40 PDT 2015
> One solution would be to define:
>
> template <endianness endian>
> inline uint32_t read32(const void *p) { return *(const detail::packed_endian_specific_integral<uint32_t, endian, unaligned> *) p; }
>
> and similar for write32, and implement Endian-independent things in terms of those.
LGTM :-)
Cheers,
Rafael
More information about the llvm-commits
mailing list