[RuntimeDyld] Handle endiannes differences between the host and target while
authorLang Hames <lhames@gmail.com>
Mon, 14 Jul 2014 23:19:50 +0000 (23:19 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 14 Jul 2014 23:19:50 +0000 (23:19 +0000)
commitc832ae3eae3b22efe01ff4447a8f897ecaa83da4
tree6eca2ad7d1a19d0d56af0eddc547ee70aa4ab77f
parentcf7c905cfb142169e4cf3f3b514b84aeff6e0845
[RuntimeDyld] Handle endiannes differences between the host and target while
reading MachO files magic numbers in RuntimeDyld.

This is required now that we're testing cross-platform JITing (via
RuntimeDyldChecker), and should fix some issues that David Fang has seen on PPC
builds.

llvm-svn: 213012
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp