diff options
author | Rui Ueyama <ruiu@google.com> | 2015-02-27 03:18:46 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-02-27 03:18:46 +0000 |
commit | 7cea026a6387de744fbcc56334465d782891a496 (patch) | |
tree | 1f7e94b37ad80dc88ae71786ed9d32d50b57026a /clang/lib/Serialization/ASTWriter.cpp | |
parent | 8ed1d8196bef89c3099be4ce4aa65f613ab819cc (diff) | |
download | bcm5719-llvm-7cea026a6387de744fbcc56334465d782891a496.tar.gz bcm5719-llvm-7cea026a6387de744fbcc56334465d782891a496.zip |
Add {read,write}{16,32,64}{le,be} functions.
Nothing wrong with reinterpret_cast<llvm::support::ulittle32_t *>(loc),
but that's redundant and not great from readability point of view.
The new functions are wrappers for that kind of reinterpet_casts.
Surprisingly or unsurprisingly, there was no use of big endian read
and write. {read,write}{16,32,64}be have no user. But I think they
still worth to be there in the header for completeness.
http://reviews.llvm.org/D7927
llvm-svn: 230725
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
0 files changed, 0 insertions, 0 deletions