[ORC][ORC-RT] Add initial Objective-C and Swift support to MachOPlatform.
authorLang Hames <lhames@gmail.com>
Mon, 26 Jul 2021 07:49:05 +0000 (17:49 +1000)
committerLang Hames <lhames@gmail.com>
Mon, 26 Jul 2021 08:02:01 +0000 (18:02 +1000)
commitcdcc35476833eca4f4996256e3ca0b21ecc26ad8
treeb3940e28f44af6b2805c6876065ea2e177869386
parent0425332015f479a89226c684c33659aa9cfff4b5
[ORC][ORC-RT] Add initial Objective-C and Swift support to MachOPlatform.

This allows ORC to execute code containing Objective-C and Swift classes and
methods (provided that the language runtime is loaded into the executor).
compiler-rt/lib/orc/macho_platform.cpp
compiler-rt/lib/orc/macho_platform.h
compiler-rt/test/orc/TestCases/Darwin/x86-64/trivial-objc-methods.S [new file with mode: 0644]
llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
llvm/lib/ExecutionEngine/Orc/Mangling.cpp