(original) (raw)
Hi All,
The initializer patch review at https://reviews.llvm.org/D74300 has been updated. The new version contains a MachOPlatform implementation that demonstrates how Platforms and ObjectLinkingLayer::Plugins can work together to implement platform specific initialization. In this case, the MachOPlatform installs a plugin that scans objects for \_\_objc\_classlist and \_\_objc\_selref sections and uses them to register JIT'd code with the Objective-C runtime. This allows LLJIT instances (and the lli command line tool) to run IR compiled from Objective-C and Swift sources.
Discussion on the review is ongoing (thanks especially to Stefan Granitz for his review comments!) but I will aim to have the patch tidied up and landed in the coming week.
-- Lang.