summaryrefslogtreecommitdiffstats
path: root/libcxx/include/thread
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-04 23:56:00 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-04 23:56:00 +0000
commite2f2d1edef9fda1c7533850cdcbeccf8083a677a (patch)
tree6b6eba7588043b2e108524c4183a4adf7c3f35fe /libcxx/include/thread
parentece4758bf28b5be96ef0123ad79456a13e8518a1 (diff)
downloadbcm5719-llvm-e2f2d1edef9fda1c7533850cdcbeccf8083a677a.tar.gz
bcm5719-llvm-e2f2d1edef9fda1c7533850cdcbeccf8083a677a.zip
[NFC] Rename _LIBCPP_TYPE_VIS_ONLY to _LIBCPP_TEMPLATE_VIS
The name _LIBCPP_TYPE_VIS_ONLY is no longer accurate because both _LIBCPP_TYPE_VIS and _LIBCPP_TYPE_VIS_ONLY expand to __attribute__((__type_visibility__)) with Clang. The only remaining difference is that _LIBCPP_TYPE_VIS_ONLY can be applied to templates whereas _LIBCPP_TYPE_VIS cannot (due to dllimport/dllexport not being allowed on templates). This patch renames _LIBCPP_TYPE_VIS_ONLY to _LIBCPP_TEMPLATE_VIS. llvm-svn: 291035
Diffstat (limited to 'libcxx/include/thread')
-rw-r--r--libcxx/include/thread6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/thread b/libcxx/include/thread
index 7fe4c77e1b1..b5b96e8c71e 100644
--- a/libcxx/include/thread
+++ b/libcxx/include/thread
@@ -211,7 +211,7 @@ _LIBCPP_INLINE_VISIBILITY __thread_id get_id() _NOEXCEPT;
template<> struct hash<__thread_id>;
-class _LIBCPP_TYPE_VIS_ONLY __thread_id
+class _LIBCPP_TEMPLATE_VIS __thread_id
{
// FIXME: pthread_t is a pointer on Darwin but a long on Linux.
// NULL is the no-thread value on Darwin. Someone needs to check
@@ -254,11 +254,11 @@ private:
friend __thread_id this_thread::get_id() _NOEXCEPT;
friend class _LIBCPP_TYPE_VIS thread;
- friend struct _LIBCPP_TYPE_VIS_ONLY hash<__thread_id>;
+ friend struct _LIBCPP_TEMPLATE_VIS hash<__thread_id>;
};
template<>
-struct _LIBCPP_TYPE_VIS_ONLY hash<__thread_id>
+struct _LIBCPP_TEMPLATE_VIS hash<__thread_id>
: public unary_function<__thread_id, size_t>
{
_LIBCPP_INLINE_VISIBILITY
OpenPOWER on IntegriCloud