@@ -2497,38 +2497,39 @@ static bool linkSpecialization(SILModule &M, SILFunction *F) {
2497
2497
return false ;
2498
2498
}
2499
2499
2500
- // / The list of classes and functions from the stdlib
2501
- // / whose specializations we want to preserve.
2502
- static const char *const KnownPrespecializations[] = {
2503
- " Array" ,
2504
- " _ArrayBuffer" ,
2505
- " _ContiguousArrayBuffer" ,
2506
- " Range" ,
2507
- " RangeIterator" ,
2508
- " CountableRange" ,
2509
- " CountableRangeIterator" ,
2510
- " ClosedRange" ,
2511
- " ClosedRangeIterator" ,
2512
- " CountableClosedRange" ,
2513
- " CountableClosedRangeIterator" ,
2514
- " IndexingIterator" ,
2515
- " Collection" ,
2516
- " ReversedCollection" ,
2517
- " MutableCollection" ,
2518
- " BidirectionalCollection" ,
2519
- " RandomAccessCollection" ,
2520
- " ReversedRandomAccessCollection" ,
2521
- " RangeReplaceableCollection" ,
2522
- " _allocateUninitializedArray" ,
2523
- " UTF8" ,
2524
- " UTF16" ,
2525
- " String" ,
2526
- " _StringBuffer" ,
2527
- };
2528
-
2529
2500
bool swift::isKnownPrespecialization (StringRef SpecName) {
2530
2501
// Completely disable for now.
2531
2502
#if false
2503
+
2504
+ // / The list of classes and functions from the stdlib
2505
+ // / whose specializations we want to preserve.
2506
+ static const char *const KnownPrespecializations[] = {
2507
+ " Array" ,
2508
+ " _ArrayBuffer" ,
2509
+ " _ContiguousArrayBuffer" ,
2510
+ " Range" ,
2511
+ " RangeIterator" ,
2512
+ " CountableRange" ,
2513
+ " CountableRangeIterator" ,
2514
+ " ClosedRange" ,
2515
+ " ClosedRangeIterator" ,
2516
+ " CountableClosedRange" ,
2517
+ " CountableClosedRangeIterator" ,
2518
+ " IndexingIterator" ,
2519
+ " Collection" ,
2520
+ " ReversedCollection" ,
2521
+ " MutableCollection" ,
2522
+ " BidirectionalCollection" ,
2523
+ " RandomAccessCollection" ,
2524
+ " ReversedRandomAccessCollection" ,
2525
+ " RangeReplaceableCollection" ,
2526
+ " _allocateUninitializedArray" ,
2527
+ " UTF8" ,
2528
+ " UTF16" ,
2529
+ " String" ,
2530
+ " _StringBuffer" ,
2531
+ };
2532
+
2532
2533
// TODO: Once there is an efficient API to check if
2533
2534
// a given symbol is a specialization of a specific type,
2534
2535
// use it instead. Doing demangling just for this check
0 commit comments