[libcxx-commits] [libcxx] 48b7068 - [libc++] Mark __call_once_proxy as hidden and internal

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 11 07:27:55 PST 2019


Author: Louis Dionne
Date: 2019-11-11T10:27:48-05:00
New Revision: 48b7068beca9d3a39dcfbebcb384b59b7898065f

URL: https://github.com/llvm/llvm-project/commit/48b7068beca9d3a39dcfbebcb384b59b7898065f
DIFF: https://github.com/llvm/llvm-project/commit/48b7068beca9d3a39dcfbebcb384b59b7898065f.diff

LOG: [libc++] Mark __call_once_proxy as hidden and internal

We effectively never want to export that function, which is an
implementation detail of libc++. This was previously tried in
603715c66b6b and then reverted in 8335dd314f36 because it caused
linker warnings. These linker warnings should go away now that we
use internal_linkage instead of always_inline to implement per-TU
insulation.

Added: 
    

Modified: 
    libcxx/include/mutex

Removed: 
    


################################################################################
diff  --git a/libcxx/include/mutex b/libcxx/include/mutex
index 8fc3c61221b5..62780bd07344 100644
--- a/libcxx/include/mutex
+++ b/libcxx/include/mutex
@@ -650,7 +650,7 @@ public:
 #endif
 
 template <class _Fp>
-void
+void _LIBCPP_INLINE_VISIBILITY
 __call_once_proxy(void* __vp)
 {
     __call_once_param<_Fp>* __p = static_cast<__call_once_param<_Fp>*>(__vp);


        


More information about the libcxx-commits mailing list