diff options
| author | Joerg Sonnenberger <joerg@bec.de> | 2020-04-04 00:48:02 +0200 |
|---|---|---|
| committer | Joerg Sonnenberger <joerg@bec.de> | 2020-04-04 01:38:41 +0200 |
| commit | 98f77828a98fd05760987598db1355cf08b643bd (patch) | |
| tree | bb414340676f3be69376c088161a48941b971f7f /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
| parent | a8c8b627f23f204fb621bd2a8c495cfc8bc16ae7 (diff) | |
| download | llvm-98f77828a98fd05760987598db1355cf08b643bd.zip llvm-98f77828a98fd05760987598db1355cf08b643bd.tar.gz llvm-98f77828a98fd05760987598db1355cf08b643bd.tar.bz2 | |
Avoid using std::max_align_t in pre-C++11 mode
Always depend on the compiler to have a correct implementation of
max_align_t in stddef.h and don't provide a fallback. For pre-C++11,
require __STDCPP_NEW_ALIGNMENT__ in <new> as provided by clang in all
standard modes. Adjust test cases to avoid testing or using max_align_t
in pre-C++11 mode and also to better deal with alignof(max_align_t)>16.
Document requirements of the alignment tests around natural alignment of
power-of-two-sized types.
Differential revision: https://reviews.llvm.org/D73245
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions
