[libcxx-commits] [PATCH] D101293: [libc++] Move <__sso_allocator> out of include/ into src/. NFCI.
Arthur O'Dwyer via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Apr 26 07:00:36 PDT 2021
Quuxplusone created this revision.
Quuxplusone added reviewers: libc++, ldionne, curdeius.
Quuxplusone added a project: libc++.
Herald added a subscriber: mgorny.
Quuxplusone requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added 1 blocking reviewer(s): libc++.
As far as I can tell, 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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D101293
Files:
libcxx/include/CMakeLists.txt
libcxx/include/__sso_allocator
libcxx/include/module.modulemap
libcxx/src/CMakeLists.txt
libcxx/src/include/locale_sso_allocator.h
libcxx/src/locale.cpp
Index: libcxx/src/locale.cpp
===================================================================
--- libcxx/src/locale.cpp
+++ libcxx/src/locale.cpp
@@ -27,7 +27,6 @@
#define _CTYPE_DISABLE_MACROS
#endif
#include "cwctype"
-#include "__sso_allocator"
#if defined(_LIBCPP_MSVCRT) || defined(__MINGW32__)
#include "__support/win32/locale_win32.h"
#elif !defined(__BIONIC__) && !defined(__NuttX__)
@@ -36,6 +35,7 @@
#include <stdlib.h>
#include <stdio.h>
#include "include/atomic_support.h"
+#include "include/locale_sso_allocator.h"
#include "__undef_macros"
// On Linux, wint_t and wchar_t have different signed-ness, and this causes
Index: libcxx/src/CMakeLists.txt
===================================================================
--- libcxx/src/CMakeLists.txt
+++ libcxx/src/CMakeLists.txt
@@ -64,6 +64,7 @@
if (LIBCXX_ENABLE_LOCALIZATION)
list(APPEND LIBCXX_SOURCES
+ include/locale_sso_allocator.h
ios.cpp
ios.instantiations.cpp
iostream.cpp
Index: libcxx/include/module.modulemap
===================================================================
--- libcxx/include/module.modulemap
+++ libcxx/include/module.modulemap
@@ -539,7 +539,6 @@
module __locale { header "__locale" export * }
module __mutex_base { header "__mutex_base" export * }
module __split_buffer { header "__split_buffer" export * }
- module __sso_allocator { header "__sso_allocator" export * }
module __std_stream { header "__std_stream" export * }
module __string { header "__string" export * }
module __tree { header "__tree" export * }
Index: libcxx/include/CMakeLists.txt
===================================================================
--- libcxx/include/CMakeLists.txt
+++ libcxx/include/CMakeLists.txt
@@ -37,7 +37,6 @@
__nullptr
__ranges/enable_borrowed_range.h
__split_buffer
- __sso_allocator
__std_stream
__string
__threading_support
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101293.340509.patch
Type: text/x-patch
Size: 1900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210426/e84a34e6/attachment.bin>
More information about the libcxx-commits
mailing list