[libc++] Move the definition of aligned allocation helpers outside of <new>
authorLouis Dionne <ldionne.2@gmail.com>
Fri, 2 Dec 2022 21:45:49 +0000 (13:45 -0800)
committerLouis Dionne <ldionne.2@gmail.com>
Thu, 26 Jan 2023 19:41:13 +0000 (14:41 -0500)
commit36080434a8858c33f2af2382be748caed131385f
treec1ff0a648ef822aa872d71e78ba5be2a534995c9
parent2e3153059c268700d4b399a8cbba28e9c2514e09
[libc++] Move the definition of aligned allocation helpers outside of <new>

They are not needed in <new> -- in fact they are only needed in .cpp files.
Getting those out of the way makes the headers smaller and also makes it
easier to use the library on platforms where aligned allocation is not
available.

Differential Revision: https://reviews.llvm.org/D139231
libcxx/include/CMakeLists.txt
libcxx/include/__memory/aligned_alloc.h [new file with mode: 0644]
libcxx/include/module.modulemap.in
libcxx/include/new
libcxx/src/new.cpp
libcxx/test/libcxx/language.support/support.dynamic/libcpp_deallocate.sh.cpp
libcxx/test/libcxx/private_headers.verify.cpp
libcxxabi/src/fallback_malloc.cpp
libcxxabi/src/stdlib_new_delete.cpp
libcxxabi/test/test_fallback_malloc.pass.cpp