From 97b5e0147c6f0ac2da673387ed6e6c2082c843f3 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Fri, 20 Jan 2023 09:18:07 +0100 Subject: [libc++] Remove explicit instantiations of __insertion_sort_incomplete and __sort5 from the dylib These instantiations were never visible, because they are only used in `__sort`, which is also explicitly instantiated in the dylib. Reviewed By: ldionne, #libc Spies: #libc_vendors, emaste, nemanjai, libcxx-commits Differential Revision: https://reviews.llvm.org/D142185 --- libcxx/src/algorithm.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'libcxx/src/algorithm.cpp') diff --git a/libcxx/src/algorithm.cpp b/libcxx/src/algorithm.cpp index bd47e08..b7535b7 100644 --- a/libcxx/src/algorithm.cpp +++ b/libcxx/src/algorithm.cpp @@ -30,24 +30,4 @@ template void __sort<__less&, float*>(float*, float*, __less&); template void __sort<__less&, double*>(double*, double*, __less&); template void __sort<__less&, long double*>(long double*, long double*, __less&); -template bool __insertion_sort_incomplete<__less&, char*>(char*, char*, __less&); -#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS -template bool __insertion_sort_incomplete<__less&, wchar_t*>(wchar_t*, wchar_t*, __less&); -#endif -template bool __insertion_sort_incomplete<__less&, signed char*>(signed char*, signed char*, __less&); -template bool __insertion_sort_incomplete<__less&, unsigned char*>(unsigned char*, unsigned char*, __less&); -template bool __insertion_sort_incomplete<__less&, short*>(short*, short*, __less&); -template bool __insertion_sort_incomplete<__less&, unsigned short*>(unsigned short*, unsigned short*, __less&); -template bool __insertion_sort_incomplete<__less&, int*>(int*, int*, __less&); -template bool __insertion_sort_incomplete<__less&, unsigned*>(unsigned*, unsigned*, __less&); -template bool __insertion_sort_incomplete<__less&, long*>(long*, long*, __less&); -template bool __insertion_sort_incomplete<__less&, unsigned long*>(unsigned long*, unsigned long*, __less&); -template bool __insertion_sort_incomplete<__less&, long long*>(long long*, long long*, __less&); -template bool __insertion_sort_incomplete<__less&, unsigned long long*>(unsigned long long*, unsigned long long*, __less&); -template bool __insertion_sort_incomplete<__less&, float*>(float*, float*, __less&); -template bool __insertion_sort_incomplete<__less&, double*>(double*, double*, __less&); -template bool __insertion_sort_incomplete<__less&, long double*>(long double*, long double*, __less&); - -template unsigned __sort5<__less&, long double*>(long double*, long double*, long double*, long double*, long double*, __less&); - _LIBCPP_END_NAMESPACE_STD -- cgit v1.1