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/ostream | |
| 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/ostream')
| -rw-r--r-- | libcxx/include/ostream | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/ostream b/libcxx/include/ostream index b135ddb7713..9d26a41e829 100644 --- a/libcxx/include/ostream +++ b/libcxx/include/ostream @@ -1287,8 +1287,8 @@ operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x) use_facet<ctype<_CharT> >(__os.getloc()).widen('1')); } -extern template class basic_ostream<char>; -extern template class basic_ostream<wchar_t>; +_LIBCPP_EXTERN_TEMPLATE(class basic_ostream<char>) +_LIBCPP_EXTERN_TEMPLATE(class basic_ostream<wchar_t>) _LIBCPP_END_NAMESPACE_STD |

