[all-commits] [llvm/llvm-project] 360804: [libc++] Move the definition of aligned allocation...

Louis Dionne via All-commits all-commits at lists.llvm.org
Thu Jan 26 11:41:38 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 36080434a8858c33f2af2382be748caed131385f
      https://github.com/llvm/llvm-project/commit/36080434a8858c33f2af2382be748caed131385f
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-01-26 (Thu, 26 Jan 2023)

  Changed paths:
    M libcxx/include/CMakeLists.txt
    A libcxx/include/__memory/aligned_alloc.h
    M libcxx/include/module.modulemap.in
    M libcxx/include/new
    M libcxx/src/new.cpp
    M libcxx/test/libcxx/language.support/support.dynamic/libcpp_deallocate.sh.cpp
    M libcxx/test/libcxx/private_headers.verify.cpp
    M libcxxabi/src/fallback_malloc.cpp
    M libcxxabi/src/stdlib_new_delete.cpp
    M libcxxabi/test/test_fallback_malloc.pass.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list