[PATCH] D113811: [ORC][ORC-RT] Register type metadata from __swift5_types MachO section

Ben Langmuir via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 12 15:28:48 PST 2021


benlangmuir created this revision.
benlangmuir added a reviewer: lhames.
Herald added a subscriber: hiraditya.
benlangmuir requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

Similar to how the other swift sections are registered by the ORC
runtime's macho platform, add the __swift5_types section, which contains
type metadata. Add a simple test that demonstrates that the swift
runtime recognized the registered types.

rdar://85358530


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113811

Files:
  compiler-rt/lib/orc/macho_platform.cpp
  compiler-rt/test/lit.common.cfg.py
  compiler-rt/test/orc/TestCases/Darwin/x86-64/trivial-swift-types-section.S
  llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
  llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113811.386965.patch
Type: text/x-patch
Size: 6395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211112/951e5aee/attachment.bin>


More information about the llvm-commits mailing list