1717// Function implementations should be placed into SILBridgingImpl.h or SILBridging.cpp and
1818// required header files should be added there.
1919//
20- #include " swift/Basic/BasicBridging .h"
20+ #include " swift/AST/ASTBridging .h"
2121
2222#ifdef USED_IN_CPP_SOURCE
2323#include " llvm/ADT/ArrayRef.h"
@@ -39,7 +39,6 @@ struct BridgedFunction;
3939struct BridgedBasicBlock ;
4040struct BridgedSuccessorArray ;
4141struct OptionalBridgedBasicBlock ;
42- struct BridgedNominalTypeDecl ;
4342
4443namespace swift {
4544class ValueBase ;
@@ -132,26 +131,6 @@ struct BridgedType {
132131 SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedType getFunctionTypeWithNoEscape (bool withNoEscape) const ;
133132};
134133
135- // AST bridging
136-
137- struct BridgedNominalTypeDecl {
138- swift::NominalTypeDecl * _Nonnull decl;
139-
140- SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedStringRef getName () const ;
141- bool isStructWithUnreferenceableStorage () const ;
142- BRIDGED_INLINE bool isGlobalActor () const ;
143- };
144-
145- struct BridgedVarDecl {
146- const swift::VarDecl * _Nonnull decl;
147-
148- SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedStringRef getUserFacingName () const ;
149- };
150-
151- struct OptionalBridgedVarDecl {
152- const swift::VarDecl * _Nullable decl;
153- };
154-
155134// SIL Bridging
156135
157136struct BridgedValue {
@@ -654,19 +633,19 @@ struct BridgedInstruction {
654633 // VarDeclInst and DebugVariableInst
655634 // =========================================================================//
656635
657- SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedVarDecl
636+ SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedNullableVarDecl
658637 DebugValue_getDecl () const ;
659638
660- SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedVarDecl
639+ SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedNullableVarDecl
661640 AllocStack_getDecl () const ;
662641
663- SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedVarDecl
642+ SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedNullableVarDecl
664643 AllocBox_getDecl () const ;
665644
666- SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedVarDecl
645+ SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedNullableVarDecl
667646 GlobalAddr_getDecl () const ;
668647
669- SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedVarDecl
648+ SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedNullableVarDecl
670649 RefElementAddr_getDecl () const ;
671650
672651 BRIDGED_INLINE OptionalBridgedSILDebugVariable DebugValue_getVarInfo () const ;
0 commit comments