Fix unaligned reads/writes in X86JIT and RuntimeDyldELF.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 27 Aug 2014 23:06:08 +0000 (23:06 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 27 Aug 2014 23:06:08 +0000 (23:06 +0000)
commit34ea0a1de3dc93dd0e586c9d68db7ad400ce623e
tree191982c9c6f4fa919192571005ae034ba520b357
parent1f5263e43f139b3db74e70d67e1f89ed71c9a318
Fix unaligned reads/writes in X86JIT and RuntimeDyldELF.

Summary:
Introduce support::ulittleX_t::ref type to Support/Endian.h and use it in x86 JIT
to enforce correct endianness and fix unaligned accesses.

Test Plan: regression test suite

Reviewers: lhames

Subscribers: ributzka, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216631 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Endian.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
lib/Target/X86/X86JITInfo.cpp