diff options
author | Shoaib Meenai <smeenai@fb.com> | 2016-09-19 18:29:07 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2016-09-19 18:29:07 +0000 |
commit | 190994e435884229ca058362e9974a5de4c41947 (patch) | |
tree | 9b04d11dc8bc301699d23abe99ebd450a513712c /libcxx/src/string.cpp | |
parent | 1197a1612d89c019ef67e43e15f45c7615b13b4d (diff) | |
download | bcm5719-llvm-190994e435884229ca058362e9974a5de4c41947.tar.gz bcm5719-llvm-190994e435884229ca058362e9974a5de4c41947.zip |
[libc++] Fix extern template visibility for Windows
On Windows, marking an `extern template class` declaration as exported
actually forces an instantiation, which is not the desired behavior.
Instead, the actual explicit instantiations need to be exported.
Differential Revision: https://reviews.llvm.org/D24679
llvm-svn: 281925
Diffstat (limited to 'libcxx/src/string.cpp')
-rw-r--r-- | libcxx/src/string.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/src/string.cpp b/libcxx/src/string.cpp index 76d5caca549..cd644330b3a 100644 --- a/libcxx/src/string.cpp +++ b/libcxx/src/string.cpp @@ -20,10 +20,10 @@ _LIBCPP_BEGIN_NAMESPACE_STD -template class __basic_string_common<true>; +template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS __basic_string_common<true>; -template class basic_string<char>; -template class basic_string<wchar_t>; +template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_string<char>; +template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_string<wchar_t>; template string |