summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/EndianStreamTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Support: Simplify endian stream interface. NFCI.Peter Collingbourne2018-05-181-11/+11
| | | | | | | | | | | | Provide some free functions to reduce verbosity of endian-writing a single value, and replace the endianness template parameter with a field. Part of PR37466. Differential Revision: https://reviews.llvm.org/D47032 llvm-svn: 332757
* Re-sort #include lines for unittests. This uses a slightly modifiedChandler Carruth2017-06-061-1/+1
| | | | | | | | | | | | | | | clang-format (https://reviews.llvm.org/D33932) to keep primary headers at the top and handle new utility headers like 'gmock' consistently with other utility headers. No other change was made. I did no manual edits, all of this is clang-format. This should allow other changes to have more clear and focused diffs, and is especially motivated by moving some headers into more focused libraries. llvm-svn: 304786
* Add a test showing we can write a vector of floats.Rafael Espindola2016-01-251-0/+21
| | | | llvm-svn: 258701
* Add ArrayRef support to EndianStream.Rafael Espindola2016-01-221-0/+30
| | | | | | | | | | Using an array instead of ArrayRef would allow type inference, but (short of using C99) one would still need to write typedef uint16_t VT[]; LE.write(VT{0x1234, 0x5678}); llvm-svn: 258535
* Add support for double / float to EndianStreamMatt Arsenault2015-02-051-0/+157
Also add new unit tests for endian::Writer llvm-svn: 228269
OpenPOWER on IntegriCloud