[libcxx-commits] [libcxx] ba19150 - [libcxx] Remove static inline and make use of _LIBCPP_HIDE_FROM_ABI in __support/xlocale/__nop_locale_mgmt.h header
Brad Smith via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jul 23 19:13:29 PDT 2022
Author: Brad Smith
Date: 2022-07-23T22:12:37-04:00
New Revision: ba1915028ecb4f6081f25e6ec9abe27b3e9d34ae
URL: https://github.com/llvm/llvm-project/commit/ba1915028ecb4f6081f25e6ec9abe27b3e9d34ae
DIFF: https://github.com/llvm/llvm-project/commit/ba1915028ecb4f6081f25e6ec9abe27b3e9d34ae.diff
LOG: [libcxx] Remove static inline and make use of _LIBCPP_HIDE_FROM_ABI in __support/xlocale/__nop_locale_mgmt.h header
Reviewed By: ldionne
Differential Revision: https://reviews.llvm.org/D129949
Added:
Modified:
libcxx/include/__support/xlocale/__nop_locale_mgmt.h
Removed:
################################################################################
diff --git a/libcxx/include/__support/xlocale/__nop_locale_mgmt.h b/libcxx/include/__support/xlocale/__nop_locale_mgmt.h
index 57b18842ff454..3d26183fafedf 100644
--- a/libcxx/include/__support/xlocale/__nop_locale_mgmt.h
+++ b/libcxx/include/__support/xlocale/__nop_locale_mgmt.h
@@ -16,18 +16,23 @@ extern "C" {
// Patch over lack of extended locale support
typedef void *locale_t;
-static inline locale_t duplocale(locale_t) {
+
+inline _LIBCPP_HIDE_FROM_ABI locale_t
+duplocale(locale_t) {
return NULL;
}
-static inline void freelocale(locale_t) {
+inline _LIBCPP_HIDE_FROM_ABI void
+freelocale(locale_t) {
}
-static inline locale_t newlocale(int, const char *, locale_t) {
+inline _LIBCPP_HIDE_FROM_ABI locale_t
+newlocale(int, const char *, locale_t) {
return NULL;
}
-static inline locale_t uselocale(locale_t) {
+inline _LIBCPP_HIDE_FROM_ABI locale_t
+uselocale(locale_t) {
return NULL;
}
More information about the libcxx-commits
mailing list