Swift.def 1.1 KB

1234567891011121314151617181920212223242526
  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. #if !(defined HANDLE_SWIFT_SECTION)
  13. #error "Missing macro definition of HANDLE_SWIFT_SECTION"
  14. #endif
  15. #ifndef HANDLE_SWIFT_SECTION
  16. #define HANDLE_SWIFT_SECTION(KIND, MACHO, ELF, COFF)
  17. #endif
  18. HANDLE_SWIFT_SECTION(fieldmd, "__swift5_fieldmd", "swift5_fieldmd", ".sw5flmd")
  19. HANDLE_SWIFT_SECTION(assocty, "__swift5_assocty", "swift5_assocty", ".sw5asty")
  20. HANDLE_SWIFT_SECTION(builtin, "__swift5_builtin", "swift5_builtin", ".sw5bltn")
  21. HANDLE_SWIFT_SECTION(capture, "__swift5_capture", "swift5_capture", ".sw5cptr")
  22. HANDLE_SWIFT_SECTION(typeref, "__swift5_typeref", "swift5_typeref", ".sw5tyrf")
  23. HANDLE_SWIFT_SECTION(reflstr, "__swift5_reflstr", "swift5_reflstr", ".sw5rfst")