Use _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY in valarray to support attribute((inter...
authorEric Fiselier <eric@efcs.ca>
Fri, 16 Sep 2016 00:13:55 +0000 (00:13 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 16 Sep 2016 00:13:55 +0000 (00:13 +0000)
commit1fbaf535d6a4555a751d1285889a7a1f52dfafc5
treec29e6003acfaac96824d9ef596c677fd0dfde243
parent1b17a4b7b4e6cfb2ece4e243bed47ec5bb81affa
Use _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY in valarray to support attribute((internal_linkage)).

The externally instantiated member functions must be declared using
_LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY, not _LIBCPP_INLINE_VISIBILITY, in
order to be properly exported when using __attribute__((internal_linkage)).

Otherwise the explicit instantiations will obviously have internal linkage and
will not be exported from the dylib.

llvm-svn: 281684
libcxx/include/valarray