File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -634,8 +634,8 @@ struct BridgedFunction {
634
634
};
635
635
636
636
SWIFT_NAME (" init(obj:)" )
637
- SWIFT_IMPORT_UNSAFE BridgedFunction (SwiftObject obj) : obj(obj) {}
638
- SWIFT_IMPORT_UNSAFE BridgedFunction () {}
637
+ BridgedFunction (SwiftObject obj) : obj(obj) {}
638
+ BridgedFunction () {}
639
639
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE swift::SILFunction * _Nonnull getFunction () const ;
640
640
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedStringRef getName () const ;
641
641
BridgedOwnedString getDebugDescription () const ;
@@ -940,7 +940,7 @@ struct BridgedInstruction {
940
940
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedGlobalVar GlobalAccessInst_getGlobal () const ;
941
941
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedGlobalVar AllocGlobalInst_getGlobal () const ;
942
942
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedFunction FunctionRefBaseInst_getReferencedFunction () const ;
943
- SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalInt IntegerLiteralInst_getValue () const ;
943
+ BRIDGED_INLINE OptionalInt IntegerLiteralInst_getValue () const ;
944
944
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedStringRef StringLiteralInst_getValue () const ;
945
945
BRIDGED_INLINE int StringLiteralInst_getEncoding () const ;
946
946
BRIDGED_INLINE SwiftInt TupleExtractInst_fieldIndex () const ;
Original file line number Diff line number Diff line change @@ -766,7 +766,6 @@ class SILDebugLocation {
766
766
bool isAutoGenerated () const { return location.isAutoGenerated (); }
767
767
operator bool () const { return bool (location) && debugScope; }
768
768
769
- SWIFT_IMPORT_UNSAFE
770
769
SILDebugLocation getAutogeneratedLocation () const {
771
770
SILDebugLocation autoGenLoc (RegularLocation::getAutoGeneratedLocation (), getScope ());
772
771
return autoGenLoc;
@@ -784,7 +783,7 @@ class SILDebugLocation {
784
783
static SILDebugLocation getArtificialUnreachableLocation () {
785
784
return SILDebugLocation (ArtificialUnreachableLocation (), nullptr );
786
785
}
787
- };
786
+ } SWIFT_SELF_CONTAINED ;
788
787
789
788
} // end swift namespace
790
789
Original file line number Diff line number Diff line change @@ -243,19 +243,16 @@ class SILType {
243
243
244
244
// / Retrieve the ClassDecl for a type that maps to a Swift class or
245
245
// / bound generic class type.
246
- SWIFT_IMPORT_UNSAFE
247
246
ClassDecl *getClassOrBoundGenericClass () const {
248
247
return getASTType ().getClassOrBoundGenericClass ();
249
248
}
250
249
// / Retrieve the StructDecl for a type that maps to a Swift struct or
251
250
// / bound generic struct type.
252
- SWIFT_IMPORT_UNSAFE
253
251
StructDecl *getStructOrBoundGenericStruct () const {
254
252
return getASTType ().getStructOrBoundGenericStruct ();
255
253
}
256
254
// / Retrieve the EnumDecl for a type that maps to a Swift enum or
257
255
// / bound generic enum type.
258
- SWIFT_IMPORT_UNSAFE
259
256
EnumDecl *getEnumOrBoundGenericEnum () const {
260
257
return getASTType ().getEnumOrBoundGenericEnum ();
261
258
}
@@ -286,15 +283,13 @@ class SILType {
286
283
287
284
bool isBuiltinBridgeObject () const { return is<BuiltinBridgeObjectType>(); }
288
285
289
- SWIFT_IMPORT_UNSAFE
290
286
SILType getBuiltinVectorElementType () const {
291
287
auto vector = castTo<BuiltinVectorType>();
292
288
return getPrimitiveObjectType (vector.getElementType ());
293
289
}
294
290
295
291
// / Retrieve the NominalTypeDecl for a type that maps to a Swift
296
292
// / nominal or bound generic nominal type.
297
- SWIFT_IMPORT_UNSAFE
298
293
NominalTypeDecl *getNominalOrBoundGenericNominal () const {
299
294
return getASTType ().getNominalOrBoundGenericNominal ();
300
295
}
You can’t perform that action at this time.
0 commit comments