@@ -78,9 +78,6 @@ namespace {
78
78
// / The source type is a CF object pointer type.
79
79
CFPointer,
80
80
81
- // / The source type is a C++ reference type.
82
- Reference,
83
-
84
81
// / The source type is a block pointer type.
85
82
Block,
86
83
@@ -123,7 +120,6 @@ namespace {
123
120
case ImportHint::BOOL:
124
121
case ImportHint::Boolean:
125
122
case ImportHint::NSUInteger:
126
- case ImportHint::Reference:
127
123
case ImportHint::Void:
128
124
return false ;
129
125
@@ -420,7 +416,7 @@ namespace {
420
416
}
421
417
422
418
ImportResult VisitReferenceType (const clang::ReferenceType *type) {
423
- return { nullptr , ImportHint::Reference } ;
419
+ return Type () ;
424
420
}
425
421
426
422
ImportResult VisitMemberPointer (const clang::MemberPointerType *type) {
@@ -1171,21 +1167,6 @@ static Type adjustTypeForConcreteImport(ClangImporter::Implementation &impl,
1171
1167
return hint.BridgedType ;
1172
1168
}
1173
1169
1174
- // Reference types are only permitted as function parameter types.
1175
- if (hint == ImportHint::Reference &&
1176
- importKind == ImportTypeKind::Parameter) {
1177
- auto refType = clangType->castAs <clang::ReferenceType>();
1178
- // Import the underlying type.
1179
- auto objectType = impl.importType (refType->getPointeeType (),
1180
- ImportTypeKind::Pointee,
1181
- allowNSUIntegerAsInt,
1182
- canFullyBridgeTypes);
1183
- if (!objectType)
1184
- return nullptr ;
1185
-
1186
- return InOutType::get (objectType);
1187
- }
1188
-
1189
1170
// For anything else, if we completely failed to import the type
1190
1171
// abstractly, give up now.
1191
1172
if (!importedType)
0 commit comments