File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -741,6 +741,9 @@ class SILSymbolVisitorImpl : public ASTVisitor<SILSymbolVisitorImpl> {
741741 if (canSkipNominal (nominal))
742742 return ;
743743
744+ if (ED->getASTContext ().LangOpts .hasFeature (Feature::Embedded))
745+ return ;
746+
744747 if (auto CD = dyn_cast_or_null<ClassDecl>(ED->getImplementedObjCDecl ())) {
745748 // @_objcImplementation extensions generate the class metadata symbols.
746749 (void )addClassMetadata (CD);
Original file line number Diff line number Diff line change 1+ // RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded -emit-api-descriptor-path %t.json
2+ // RUN: %validate-json %t.json | %FileCheck %s
3+
4+ // REQUIRES: swift_in_compiler
5+ // REQUIRES: optimized_stdlib
6+ // REQUIRES: swift_feature_Embedded
7+
8+ public struct MyStruct {
9+ }
10+
11+ extension MyStruct : Equatable {
12+ public static func == ( lhs: Self , rhs: Self ) -> Bool { return false }
13+ }
14+
15+ // CHECK: "target"
16+ // CHECK-NEXT: "globals": [
17+ // CHECK-NEXT: {
18+ // CHECK-NEXT: "name": "{{(_main)|(main)}}",
19+ // CHECK-NEXT: "access": "public",
20+ // CHECK-NEXT: "file": "",
21+ // CHECK-NEXT: "linkage": "exported"
22+ // CHECK-NEXT: }
23+ // CHECK-NEXT: ],
24+ // CHECK-NEXT: "interfaces": [],
25+ // CHECK-NEXT: "categories": [],
26+ // CHECK-NEXT: "version": "1.0"
You can’t perform that action at this time.
0 commit comments