File tree Expand file tree Collapse file tree 3 files changed +11
-36
lines changed Expand file tree Collapse file tree 3 files changed +11
-36
lines changed Original file line number Diff line number Diff line change 1212//
1313//===----------------------------------------------------------------------===//
1414
15+ import SwiftSyntax
16+
1517/// Registry of names we've already emitted as @_cdecl and must be kept unique.
1618/// In order to avoid duplicate symbols, the registry can append some unique identifier to duplicated names
1719package struct ThunkNameRegistry {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -49,18 +49,20 @@ final class VariableImportTests {
4949 """
5050 private static class counterInt {
5151 public static final FunctionDescriptor DESC_GET = FunctionDescriptor.of(
52- /* -> */SWIFT_INT,
52+ /* -> */SWIFT_INT,
5353 SWIFT_POINTER
54- );
55- public static final MemorySegment ADDR_GET =
56- FakeModule.findOrThrow( " swiftjava_FakeModule_MySwiftClass_counterInt$1 " );
54+ );
55+ public static final MemorySegment ADDR_GET =
56+ FakeModule.findOrThrow( " swiftjava_FakeModule_MySwiftClass_counterInt " );
57+
5758 public static final MethodHandle HANDLE_GET = Linker.nativeLinker().downcallHandle(ADDR_GET, DESC_GET);
5859 public static final FunctionDescriptor DESC_SET = FunctionDescriptor.ofVoid(
59- SWIFT_INT,
60+ SWIFT_INT,
6061 SWIFT_POINTER
61- );
62+ );
6263 public static final MemorySegment ADDR_SET =
63- FakeModule.findOrThrow( " swiftjava_FakeModule_MySwiftClass_counterInt__$1 " );
64+ FakeModule.findOrThrow( " swiftjava_FakeModule_MySwiftClass_counterInt " );
65+
6466 public static final MethodHandle HANDLE_SET = Linker.nativeLinker().downcallHandle(ADDR_SET, DESC_SET);
6567 }
6668 """ ,
You can’t perform that action at this time.
0 commit comments