@@ -194,16 +194,6 @@ class AbstractionPattern {
194
194
// / non-static member function. OrigType is valid and is a function type.
195
195
// / CXXMethod is valid.
196
196
PartialCurriedCXXMethodType,
197
- // / The uncurried imported type of a C++ operator non-static member
198
- // / function. OrigType is valid and is a function type. CXXMethod is valid.
199
- CXXOperatorMethodType,
200
- // / The curried imported type of a C++ operator non-static member function.
201
- // / OrigType is valid and is a function type. CXXMethod is valid.
202
- CurriedCXXOperatorMethodType,
203
- // / The partially-applied curried imported type of a C++ operator non-static
204
- // / member function. OrigType is valid and is a function type. CXXMethod is
205
- // / valid.
206
- PartialCurriedCXXOperatorMethodType,
207
197
// / A Swift function whose parameters and results are opaque. This is
208
198
// / like `AP::Type<T>((T) -> T)`, except that the number of parameters is
209
199
// / unspecified.
@@ -470,9 +460,6 @@ class AbstractionPattern {
470
460
case Kind::CXXMethodType:
471
461
case Kind::CurriedCXXMethodType:
472
462
case Kind::PartialCurriedCXXMethodType:
473
- case Kind::CXXOperatorMethodType:
474
- case Kind::CurriedCXXOperatorMethodType:
475
- case Kind::PartialCurriedCXXOperatorMethodType:
476
463
return true ;
477
464
478
465
default :
@@ -513,9 +500,6 @@ class AbstractionPattern {
513
500
case Kind::CXXMethodType:
514
501
case Kind::CurriedCXXMethodType:
515
502
case Kind::PartialCurriedCXXMethodType:
516
- case Kind::CXXOperatorMethodType:
517
- case Kind::CurriedCXXOperatorMethodType:
518
- case Kind::PartialCurriedCXXOperatorMethodType:
519
503
return true ;
520
504
521
505
default :
@@ -614,9 +598,6 @@ class AbstractionPattern {
614
598
case Kind::CXXMethodType:
615
599
case Kind::CurriedCXXMethodType:
616
600
case Kind::PartialCurriedCXXMethodType:
617
- case Kind::CXXOperatorMethodType:
618
- case Kind::CurriedCXXOperatorMethodType:
619
- case Kind::PartialCurriedCXXOperatorMethodType:
620
601
case Kind::ObjCCompletionHandlerArgumentsType:
621
602
return true ;
622
603
case Kind::Invalid:
@@ -712,10 +693,6 @@ class AbstractionPattern {
712
693
static AbstractionPattern
713
694
getCurriedCXXMethod (CanType origType, const AbstractFunctionDecl *function);
714
695
715
- static AbstractionPattern
716
- getCurriedCXXOperatorMethod (CanType origType,
717
- const AbstractFunctionDecl *function);
718
-
719
696
// / Return an abstraction pattern for the uncurried type of a C++ method.
720
697
// /
721
698
// / For example, if the original function is:
@@ -733,16 +710,6 @@ class AbstractionPattern {
733
710
return pattern;
734
711
}
735
712
736
- static AbstractionPattern
737
- getCXXOperatorMethod (CanType origType, const clang::CXXMethodDecl *method,
738
- ImportAsMemberStatus memberStatus) {
739
- assert (isa<AnyFunctionType>(origType));
740
- AbstractionPattern pattern;
741
- pattern.initCXXMethod (nullptr , origType, method,
742
- Kind::CXXOperatorMethodType, memberStatus);
743
- return pattern;
744
- }
745
-
746
713
// / Return an abstraction pattern for the curried type of a C++ method.
747
714
// /
748
715
// / For example, if the original function is:
@@ -760,17 +727,6 @@ class AbstractionPattern {
760
727
return pattern;
761
728
}
762
729
763
- static AbstractionPattern
764
- getCurriedCXXOperatorMethod (CanType origType,
765
- const clang::CXXMethodDecl *method,
766
- ImportAsMemberStatus memberStatus) {
767
- assert (isa<AnyFunctionType>(origType));
768
- AbstractionPattern pattern;
769
- pattern.initCXXMethod (nullptr , origType, method,
770
- Kind::CurriedCXXOperatorMethodType, memberStatus);
771
- return pattern;
772
- }
773
-
774
730
// / For a C-function-as-method pattern,
775
731
// / get the index of the C function parameter that was imported as the
776
732
// / `self` parameter of the imported method, or None if this is a static
@@ -877,18 +833,6 @@ class AbstractionPattern {
877
833
return pattern;
878
834
}
879
835
880
- static AbstractionPattern
881
- getPartialCurriedCXXOperatorMethod (CanGenericSignature signature,
882
- CanType origType,
883
- const clang::CXXMethodDecl *method,
884
- ImportAsMemberStatus memberStatus) {
885
- assert (isa<AnyFunctionType>(origType));
886
- AbstractionPattern pattern;
887
- pattern.initCXXMethod (signature, origType, method,
888
- Kind::PartialCurriedCXXOperatorMethodType, memberStatus);
889
- return pattern;
890
- }
891
-
892
836
public:
893
837
// / Return an abstraction pattern for the type of an Objective-C method.
894
838
static AbstractionPattern
@@ -1026,9 +970,6 @@ class AbstractionPattern {
1026
970
case Kind::CXXMethodType:
1027
971
case Kind::CurriedCXXMethodType:
1028
972
case Kind::PartialCurriedCXXMethodType:
1029
- case Kind::CXXOperatorMethodType:
1030
- case Kind::CurriedCXXOperatorMethodType:
1031
- case Kind::PartialCurriedCXXOperatorMethodType:
1032
973
case Kind::Type:
1033
974
case Kind::Discard:
1034
975
return OrigType;
@@ -1065,9 +1006,6 @@ class AbstractionPattern {
1065
1006
case Kind::CXXMethodType:
1066
1007
case Kind::CurriedCXXMethodType:
1067
1008
case Kind::PartialCurriedCXXMethodType:
1068
- case Kind::CXXOperatorMethodType:
1069
- case Kind::CurriedCXXOperatorMethodType:
1070
- case Kind::PartialCurriedCXXOperatorMethodType:
1071
1009
case Kind::Type:
1072
1010
case Kind::Discard:
1073
1011
case Kind::ObjCCompletionHandlerArgumentsType:
@@ -1106,9 +1044,6 @@ class AbstractionPattern {
1106
1044
case Kind::CXXMethodType:
1107
1045
case Kind::CurriedCXXMethodType:
1108
1046
case Kind::PartialCurriedCXXMethodType:
1109
- case Kind::CXXOperatorMethodType:
1110
- case Kind::CurriedCXXOperatorMethodType:
1111
- case Kind::PartialCurriedCXXOperatorMethodType:
1112
1047
case Kind::ObjCCompletionHandlerArgumentsType:
1113
1048
return true ;
1114
1049
}
@@ -1147,9 +1082,7 @@ class AbstractionPattern {
1147
1082
// / If so, it is legal to call getCXXMethod().
1148
1083
bool isCXXMethod () const {
1149
1084
return (getKind () == Kind::CXXMethodType ||
1150
- getKind () == Kind::CurriedCXXMethodType ||
1151
- getKind () == Kind::CXXOperatorMethodType ||
1152
- getKind () == Kind::CurriedCXXOperatorMethodType);
1085
+ getKind () == Kind::CurriedCXXMethodType);
1153
1086
}
1154
1087
1155
1088
const clang::CXXMethodDecl *getCXXMethod () const {
@@ -1184,9 +1117,6 @@ class AbstractionPattern {
1184
1117
case Kind::CXXMethodType:
1185
1118
case Kind::CurriedCXXMethodType:
1186
1119
case Kind::PartialCurriedCXXMethodType:
1187
- case Kind::CXXOperatorMethodType:
1188
- case Kind::CurriedCXXOperatorMethodType:
1189
- case Kind::PartialCurriedCXXOperatorMethodType:
1190
1120
case Kind::OpaqueFunction:
1191
1121
case Kind::OpaqueDerivativeFunction:
1192
1122
case Kind::ObjCCompletionHandlerArgumentsType:
@@ -1224,9 +1154,6 @@ class AbstractionPattern {
1224
1154
case Kind::CXXMethodType:
1225
1155
case Kind::CurriedCXXMethodType:
1226
1156
case Kind::PartialCurriedCXXMethodType:
1227
- case Kind::CXXOperatorMethodType:
1228
- case Kind::CurriedCXXOperatorMethodType:
1229
- case Kind::PartialCurriedCXXOperatorMethodType:
1230
1157
case Kind::Type:
1231
1158
case Kind::Discard:
1232
1159
case Kind::ObjCCompletionHandlerArgumentsType:
@@ -1256,9 +1183,6 @@ class AbstractionPattern {
1256
1183
case Kind::CXXMethodType:
1257
1184
case Kind::CurriedCXXMethodType:
1258
1185
case Kind::PartialCurriedCXXMethodType:
1259
- case Kind::CXXOperatorMethodType:
1260
- case Kind::CurriedCXXOperatorMethodType:
1261
- case Kind::PartialCurriedCXXOperatorMethodType:
1262
1186
case Kind::OpaqueFunction:
1263
1187
case Kind::OpaqueDerivativeFunction:
1264
1188
case Kind::ObjCCompletionHandlerArgumentsType:
@@ -1289,9 +1213,6 @@ class AbstractionPattern {
1289
1213
case Kind::CXXMethodType:
1290
1214
case Kind::CurriedCXXMethodType:
1291
1215
case Kind::PartialCurriedCXXMethodType:
1292
- case Kind::CXXOperatorMethodType:
1293
- case Kind::CurriedCXXOperatorMethodType:
1294
- case Kind::PartialCurriedCXXOperatorMethodType:
1295
1216
case Kind::OpaqueFunction:
1296
1217
case Kind::OpaqueDerivativeFunction:
1297
1218
return false ;
@@ -1320,9 +1241,6 @@ class AbstractionPattern {
1320
1241
case Kind::CXXMethodType:
1321
1242
case Kind::CurriedCXXMethodType:
1322
1243
case Kind::PartialCurriedCXXMethodType:
1323
- case Kind::CXXOperatorMethodType:
1324
- case Kind::CurriedCXXOperatorMethodType:
1325
- case Kind::PartialCurriedCXXOperatorMethodType:
1326
1244
case Kind::OpaqueFunction:
1327
1245
case Kind::OpaqueDerivativeFunction:
1328
1246
llvm_unreachable (" pattern is not a tuple" );
0 commit comments