[libc++] Move <__sso_allocator> out of include/ into src/. NFCI.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Mon, 26 Apr 2021 13:56:50 +0000 (09:56 -0400)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Wed, 5 May 2021 20:20:52 +0000 (16:20 -0400)
commit0b10bb7ddd3c92465ef12d52e88614e6b4c5ef27
treec2375e638d206007bc2f4f6c8a4ecf2e25cb2296
parent602f318cfdac999a8604f1588159326b1a1a1a23
[libc++] Move <__sso_allocator> out of include/ into src/. NFCI.

This allocator is not intended for libc++'s users to use;
it's strictly an implementation detail of `src/locale.cpp`.
So, move it to the `src/include/` directory.

Drive-by const-qualify its comparison operators.

For consistency with `__hidden_allocator` (defined in `src/thread.cpp`),
do *not* remove it from "libcxx/lib/libc++unexp.exp",
"libcxx/utils/symcheck-blacklists/linux_blacklist.txt", etc.

Differential Revision: https://reviews.llvm.org/D101293
libcxx/include/CMakeLists.txt
libcxx/include/module.modulemap
libcxx/src/CMakeLists.txt
libcxx/src/include/sso_allocator.h [moved from libcxx/include/__sso_allocator with 89% similarity]
libcxx/src/locale.cpp