File tree Expand file tree Collapse file tree 2 files changed +21
-27
lines changed Expand file tree Collapse file tree 2 files changed +21
-27
lines changed Original file line number Diff line number Diff line change 2
2
// All Rights Reserved.
3
3
// SPDX-License-Identifier: BSD-3
4
4
5
- #if defined(__ELF__ )
6
- #define SWIFT_RUNTIME_ABI __attribute__((__visibility__("default")))
7
- #elif defined(__MACH__ )
8
- #define SWIFT_RUNTIME_ABI __attribute__((__visibility__("default")))
9
- #elif defined(__WASM__ )
10
- #define SWIFT_RUNTIME_ABI __attribute__((__visibility__("default")))
11
- #else
12
- #define SWIFT_RUNTIME_ABI __declspec(dllexport)
13
- #endif
14
-
15
- struct ValueWitnessTable {};
16
-
17
- struct TypeMetadata {};
5
+ #include "Types.h"
6
+ #include "Visibility.h"
18
7
19
8
SWIFT_RUNTIME_ABI
20
- struct ValueWitnessTable $sBi8_WV ;
9
+ ValueWitnessTable $sBi8_WV ;
21
10
22
11
SWIFT_RUNTIME_ABI
23
- struct ValueWitnessTable $sBi32_WV ;
12
+ ValueWitnessTable $sBi32_WV ;
24
13
25
14
SWIFT_RUNTIME_ABI
26
- struct ValueWitnessTable $sytWV ;
15
+ ValueWitnessTable $sytWV ;
27
16
28
17
SWIFT_RUNTIME_ABI
29
- struct TypeMetadata $sBi1_N ;
18
+ TypeMetadata $sBi1_N ;
30
19
31
20
SWIFT_RUNTIME_ABI
32
- struct TypeMetadata $sBi8_N ;
21
+ TypeMetadata $sBi8_N ;
33
22
34
23
SWIFT_RUNTIME_ABI
35
- struct TypeMetadata $sBi32_N ;
24
+ TypeMetadata $sBi32_N ;
Original file line number Diff line number Diff line change 6
6
#define uSwift_Runtime_Types_h
7
7
8
8
typedef struct Metadata Metadata ;
9
- typedef struct EnumMetadata EnumMetadata ;
10
- typedef struct ValueMetadata ValueMetadata ;
11
9
typedef struct OpaqueValue OpaqueValue ;
12
10
13
- typedef struct ValueTypeDescriptor ValueTypeDescriptor ;
11
+ typedef enum EnumLayoutFlags {
12
+ invalid ,
13
+ } EnumLayoutFlags ;
14
+ typedef struct EnumMetadata EnumMetadata ;
15
+
14
16
typedef struct GenericValueMetadataPattern GenericValueMetadataPattern ;
15
17
18
+ typedef struct HeapObject HeapObject ;
19
+
16
20
typedef struct MetdataRequest {
17
21
} MetadataRequest ;
18
22
typedef struct MetdataResponse {
19
23
} MetadataResponse ;
20
24
21
25
typedef struct TypeContextDescriptor TypeContextDescriptor ;
22
26
typedef struct TypeLayout TypeLayout ;
27
+ typedef struct TypeMetadata {
28
+ } TypeMetadata ;
23
29
24
- typedef struct HeapObject HeapObject ;
25
-
26
- typedef enum EnumLayoutFlags {
27
- invalid ,
28
- } EnumLayoutFlags ;
30
+ typedef struct ValueMetadata ValueMetadata ;
31
+ typedef struct ValueTypeDescriptor ValueTypeDescriptor ;
32
+ typedef struct ValueWitnessTable {
33
+ } ValueWitnessTable ;
29
34
30
35
typedef void (__attribute__ ((__swiftcall__ )) *
31
36
StoreExtraInhabitantTagFn )(OpaqueValue * value , unsigned store_case ,
You can’t perform that action at this time.
0 commit comments