[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)
commit30589ce60eb39c389ef742140045b99205e45987
treecd87eacf8454e03b1ad67e15107fac645060f62e
parent0b46809d1effc28366ef09de580af39a31bf1104
[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.

llvm-svn: 171406
llvm/include/llvm/Support/Compiler.h
llvm/include/llvm/Support/Endian.h
llvm/unittests/Support/EndianTest.cpp
llvm/utils/yaml2obj/yaml2obj.cpp