[libc++] Move the definition of std::new_handler out of new.cpp
authorLouis Dionne <ldionne.2@gmail.com>
Wed, 14 Jun 2023 20:37:57 +0000 (13:37 -0700)
committerLouis Dionne <ldionne.2@gmail.com>
Thu, 15 Jun 2023 15:14:14 +0000 (11:14 -0400)
commit80e4ccab794c81a7cb3e052cb4e0d85ba66158a0
tree342419c1bf790b92fc5856761c60c96c02241f9c
parent77f8f40cd492def39ee7a66fb7287eb4b0055428
[libc++] Move the definition of std::new_handler out of new.cpp

This reduces the difference between libc++'s new.cpp and libc++abi's
stdlib_new_delete.cpp files, which are essentially copies of each other.

Differential Revision: https://reviews.llvm.org/D152956
libcxx/src/CMakeLists.txt
libcxx/src/new.cpp
libcxx/src/new_handler.cpp [moved from libcxx/src/support/runtime/new_handler_fallback.ipp with 52% similarity]
libcxx/utils/data/ignore_format.txt