[libcxx-commits] [PATCH] D129949: [libcxx] Remove static inline and make use of _LIBCPP_HIDE_FROM_ABI in __support/xlocale/__nop_locale_mgmt.h header

Brad Smith via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 20 19:36:56 PDT 2022


brad updated this revision to Diff 446322.
brad added a comment.

Rebase.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129949/new/

https://reviews.llvm.org/D129949

Files:
  libcxx/include/__support/xlocale/__nop_locale_mgmt.h


Index: libcxx/include/__support/xlocale/__nop_locale_mgmt.h
===================================================================
--- libcxx/include/__support/xlocale/__nop_locale_mgmt.h
+++ libcxx/include/__support/xlocale/__nop_locale_mgmt.h
@@ -16,18 +16,23 @@
 
 // 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;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129949.446322.patch
Type: text/x-patch
Size: 870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220721/bff1573e/attachment.bin>


More information about the libcxx-commits mailing list