1 | //===- llvm/BinaryFormat/Swift.def - Swift definitions ---------*- C++ -*-===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | // |
9 | // Macros for running through Swift enumerators. |
10 | // |
11 | //===----------------------------------------------------------------------===// |
12 | |
13 | #if !(defined HANDLE_SWIFT_SECTION) |
14 | #error "Missing macro definition of HANDLE_SWIFT_SECTION" |
15 | #endif |
16 | |
17 | #ifndef HANDLE_SWIFT_SECTION |
18 | #define HANDLE_SWIFT_SECTION(KIND, MACHO, ELF, COFF) |
19 | #endif |
20 | |
21 | // Reflection metadata. |
22 | HANDLE_SWIFT_SECTION(fieldmd, "__swift5_fieldmd" , "swift5_fieldmd" , ".sw5flmd" ) |
23 | HANDLE_SWIFT_SECTION(assocty, "__swift5_assocty" , "swift5_assocty" , ".sw5asty" ) |
24 | HANDLE_SWIFT_SECTION(builtin, "__swift5_builtin" , "swift5_builtin" , ".sw5bltn" ) |
25 | HANDLE_SWIFT_SECTION(capture, "__swift5_capture" , "swift5_capture" , ".sw5cptr" ) |
26 | HANDLE_SWIFT_SECTION(typeref, "__swift5_typeref" , "swift5_typeref" , ".sw5tyrf" ) |
27 | HANDLE_SWIFT_SECTION(reflstr, "__swift5_reflstr" , "swift5_reflstr" , ".sw5rfst" ) |
28 | HANDLE_SWIFT_SECTION(conform, "__swift5_proto" , "swift5_protocol_conformances" , |
29 | ".sw5prtc$B" ) |
30 | HANDLE_SWIFT_SECTION(protocs, "__swift5_protos" , "swift5_protocols" , |
31 | ".sw5prt$B" ) |
32 | HANDLE_SWIFT_SECTION(acfuncs, "__swift5_acfuncs" , "swift5_accessible_functions" , |
33 | ".sw5acfn$B" ) |
34 | HANDLE_SWIFT_SECTION(mpenum, "__swift5_mpenum" , "swift5_mpenum" , ".sw5mpen$B" ) |
35 | |
36 | // Debug info. |
37 | HANDLE_SWIFT_SECTION(swiftast, "__swift_ast" , ".swift_ast" , "swiftast" ) |
38 | |