diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-11-06 21:08:48 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-11-06 21:08:48 +0000 |
commit | cd47cbc7a44604a65d3ef391822a32b79b2f61e4 (patch) | |
tree | a8a24b04b88d31cf33571aeadc5d3252ca45e831 /libcxx/include/valarray | |
parent | dc4ecaff07b62f7ddf4be17d72b336182382b0e5 (diff) | |
download | bcm5719-llvm-cd47cbc7a44604a65d3ef391822a32b79b2f61e4.tar.gz bcm5719-llvm-cd47cbc7a44604a65d3ef391822a32b79b2f61e4.zip |
Provide a way to disable use of extern templates in libc++. This is intended for the clients of libc++, not the libc++ build. The dylib should always contain the extern templates. To disable the client needs to put -D'_LIBCPP_EXTERN_TEMPLATE(...)=' on the command line.
llvm-svn: 167486
Diffstat (limited to 'libcxx/include/valarray')
-rw-r--r-- | libcxx/include/valarray | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/valarray b/libcxx/include/valarray index 4091d0f71b3..c56dd125d6a 100644 --- a/libcxx/include/valarray +++ b/libcxx/include/valarray @@ -4770,9 +4770,9 @@ end(const valarray<_Tp>& __v) return __v.__end_; } -extern template valarray<size_t>::valarray(size_t); -extern template valarray<size_t>::~valarray(); -extern template void valarray<size_t>::resize(size_t, size_t); +_LIBCPP_EXTERN_TEMPLATE(valarray<size_t>::valarray(size_t)) +_LIBCPP_EXTERN_TEMPLATE(valarray<size_t>::~valarray()) +_LIBCPP_EXTERN_TEMPLATE(void valarray<size_t>::resize(size_t, size_t)) _LIBCPP_END_NAMESPACE_STD |