diff options
author | Kazu Hirata <kazu@google.com> | 2024-04-15 19:05:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-15 19:05:30 -0700 |
commit | 568368a43e5b4adb3c5d105a0eff3e0c13c0af8c (patch) | |
tree | 9134add985a3e239abe00eb30bc53833c7772e48 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 5f680724838188f516d349bd9459710308d721e0 (diff) | |
download | llvm-568368a43e5b4adb3c5d105a0eff3e0c13c0af8c.zip llvm-568368a43e5b4adb3c5d105a0eff3e0c13c0af8c.tar.gz llvm-568368a43e5b4adb3c5d105a0eff3e0c13c0af8c.tar.bz2 |
[Support] Make readNext default to unaligned (#88808)
Without this patch, you would typically use readNext as:
readNext<uint32_t, llvm::endianness::little, unaligned>(Ptr)
which is quite mouthful. Since most serialization/deserialization
operations are unaligned accesses, this patch makes the alignment
template parameter default to unaligned, allowing us to say:
readNext<uint32_t, llvm::endianness::little>(Ptr)
I'm including a few examples of migration in this patch. I'll do the
rest in a separate patch.
Note that writeNext already has the same trick for the alignment
template parameter.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions