From e2f2d1edef9fda1c7533850cdcbeccf8083a677a Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 4 Jan 2017 23:56:00 +0000 Subject: [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 --- libcxx/include/queue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libcxx/include/queue') diff --git a/libcxx/include/queue b/libcxx/include/queue index 01247a29da2..271c203e1d2 100644 --- a/libcxx/include/queue +++ b/libcxx/include/queue @@ -178,7 +178,7 @@ template _LIBCPP_BEGIN_NAMESPACE_STD -template > class _LIBCPP_TYPE_VIS_ONLY queue; +template > class _LIBCPP_TEMPLATE_VIS queue; template _LIBCPP_INLINE_VISIBILITY @@ -191,7 +191,7 @@ bool operator< (const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y); template */> -class _LIBCPP_TYPE_VIS_ONLY queue +class _LIBCPP_TEMPLATE_VIS queue { public: typedef _Container container_type; @@ -381,14 +381,14 @@ swap(queue<_Tp, _Container>& __x, queue<_Tp, _Container>& __y) } template -struct _LIBCPP_TYPE_VIS_ONLY uses_allocator, _Alloc> +struct _LIBCPP_TEMPLATE_VIS uses_allocator, _Alloc> : public uses_allocator<_Container, _Alloc> { }; template , class _Compare = less > -class _LIBCPP_TYPE_VIS_ONLY priority_queue +class _LIBCPP_TEMPLATE_VIS priority_queue { public: typedef _Container container_type; @@ -732,7 +732,7 @@ swap(priority_queue<_Tp, _Container, _Compare>& __x, } template -struct _LIBCPP_TYPE_VIS_ONLY uses_allocator, _Alloc> +struct _LIBCPP_TEMPLATE_VIS uses_allocator, _Alloc> : public uses_allocator<_Container, _Alloc> { }; -- cgit v1.2.3