diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-02 20:14:11 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-02 20:14:11 +0000 |
commit | c8b18df9a79ddb759d6a563dd7ebd90b85ae4918 (patch) | |
tree | 52c58ddcb2ace79bcc48f182016b9cd7587a5a42 /utils | |
parent | 8da72f82be858234e81e8a95bd202ab2f2bf891b (diff) |
[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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/yaml2obj/yaml2obj.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/yaml2obj/yaml2obj.cpp b/utils/yaml2obj/yaml2obj.cpp index c9436090dd..5a8ec1d096 100644 --- a/utils/yaml2obj/yaml2obj.cpp +++ b/utils/yaml2obj/yaml2obj.cpp @@ -790,7 +790,8 @@ template <typename value_type> raw_ostream &operator <<( raw_ostream &OS , const binary_le_impl<value_type> &BLE) { char Buffer[sizeof(BLE.Value)]; - support::endian::write_le<value_type, support::unaligned>(Buffer, BLE.Value); + support::endian::write<value_type, support::little, support::unaligned>( + Buffer, BLE.Value); OS.write(Buffer, sizeof(BLE.Value)); return OS; } |