summaryrefslogtreecommitdiffstats
path: root/libcxx/src/string.cpp
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2016-09-19 18:29:07 +0000
committerShoaib Meenai <smeenai@fb.com>2016-09-19 18:29:07 +0000
commit190994e435884229ca058362e9974a5de4c41947 (patch)
tree9b04d11dc8bc301699d23abe99ebd450a513712c /libcxx/src/string.cpp
parent1197a1612d89c019ef67e43e15f45c7615b13b4d (diff)
downloadbcm5719-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.cpp6
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
OpenPOWER on IntegriCloud