[Support][Endian] Add support for specifying the alignment and native unaligned types.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 2 Jan 2013 20:14:11 +0000 (20:14 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 2 Jan 2013 20:14:11 +0000 (20:14 +0000)
commitc8b18df9a79ddb759d6a563dd7ebd90b85ae4918
tree52c58ddcb2ace79bcc48f182016b9cd7587a5a42
parent8da72f82be858234e81e8a95bd202ab2f2bf891b
[Support][Endian] Add support for specifying the alignment and native unaligned types.

* Add support for specifying the alignment to use.
* Add the concept of native endianness. Used for unaligned native types.

The native alignment and read/write simplification is based on a patch by Richard Smith.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171406 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Compiler.h
include/llvm/Support/Endian.h
unittests/Support/EndianTest.cpp
utils/yaml2obj/yaml2obj.cpp