[PATCH] Add functions for writing endian specific data to streams

Justin Bogner mail at justinbogner.com
Mon Mar 24 14:08:52 PDT 2014


This adds a new header, EndianStream.h, which supplies a single
templated function for writing endian specific data to a raw_ostream.

The second patch is just a mechanical update of clang to use this rather
than rolling their own. I've included it to show what it looks like to
use this new API.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: endian-stream.patch
Type: text/x-patch
Size: 1633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140324/673a8ed9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: endian-stream-uses.patch
Type: text/x-patch
Size: 27912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140324/673a8ed9/attachment-0001.bin>


More information about the llvm-commits mailing list