[JIT] Fix more missing endian conversions (opcodes for AArch64, ARM, and Mips stub...
authorDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 6 Nov 2014 09:53:05 +0000 (09:53 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 6 Nov 2014 09:53:05 +0000 (09:53 +0000)
commit66e799ff1b5b31300fbe06185fac81c4402fe18a
tree8cbef91566d7142bb22ea298c28110891bfe62fe
parent3400563ea6160dce01a0fb4741bacc4b61db74ad
[JIT] Fix more missing endian conversions (opcodes for AArch64, ARM, and Mips stub functions, and ARM target in general)

Summary:
Fixed all of the missing endian conversions that Lang Hames and I identified in
RuntimeDyldMachOARM.h.

Fixed the opcode emission in RuntimeDyldImpl::createStubFunction() for AArch64,
ARM, Mips when the host endian doesn't match the target endian.
PowerPC will need changing if it's opcodes are affected by endianness but I've
left this for now since I'm unsure if this is the case and it's the only path
that specifies the target endian.

This patch fixes MachO_ARM_PIC_relocations.s on a big-endian Mips host. This
is the last of the known issues on this host.

Reviewers: lhames

Reviewed By: lhames

Subscribers: aemerson, llvm-commits

Differential Revision: http://reviews.llvm.org/D6130

llvm-svn: 221446
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h