summaryrefslogtreecommitdiffstats
path: root/libcxx/include/any
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/any
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/any')
-rw-r--r--libcxx/include/any10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/include/any b/libcxx/include/any
index 1f70c4ff9b8..823e1304b5c 100644
--- a/libcxx/include/any
+++ b/libcxx/include/any
@@ -113,7 +113,7 @@ void __throw_bad_any_cast()
}
// Forward declarations
-class _LIBCPP_TYPE_VIS_ONLY any;
+class _LIBCPP_TEMPLATE_VIS any;
template <class _ValueType>
_LIBCPP_INLINE_VISIBILITY
@@ -148,7 +148,7 @@ namespace __any_imp
template <class _Tp> struct _LargeHandler;
template <class _Tp>
- struct _LIBCPP_TYPE_VIS_ONLY __unique_typeinfo { static constexpr int __id = 0; };
+ struct _LIBCPP_TEMPLATE_VIS __unique_typeinfo { static constexpr int __id = 0; };
template <class _Tp> constexpr int __unique_typeinfo<_Tp>::__id;
template <class _Tp>
@@ -176,7 +176,7 @@ namespace __any_imp
} // namespace __any_imp
-class _LIBCPP_TYPE_VIS_ONLY any
+class _LIBCPP_TEMPLATE_VIS any
{
public:
// construct/destruct
@@ -338,7 +338,7 @@ private:
namespace __any_imp
{
template <class _Tp>
- struct _LIBCPP_TYPE_VIS_ONLY _SmallHandler
+ struct _LIBCPP_TEMPLATE_VIS _SmallHandler
{
_LIBCPP_INLINE_VISIBILITY
static void* __handle(_Action __act, any const * __this, any * __other,
@@ -412,7 +412,7 @@ namespace __any_imp
};
template <class _Tp>
- struct _LIBCPP_TYPE_VIS_ONLY _LargeHandler
+ struct _LIBCPP_TEMPLATE_VIS _LargeHandler
{
_LIBCPP_INLINE_VISIBILITY
static void* __handle(_Action __act, any const * __this,
OpenPOWER on IntegriCloud