[ORC] Add ThreadSafeModule::takingModuleDo for consuming operations on TSMs.
authorLang Hames <lhames@gmail.com>
Tue, 3 Jan 2023 01:33:13 +0000 (17:33 -0800)
committerLang Hames <lhames@gmail.com>
Tue, 3 Jan 2023 01:38:16 +0000 (17:38 -0800)
commit0bf85d7d8129339ac66ac8d94a7a4d636508fe1a
tree04792359d8186c22033310714f28f02384f91b36
parent2c675be9b232c1d0b5c55cbcb196e71036c681ea
[ORC] Add ThreadSafeModule::takingModuleDo for consuming operations on TSMs.

ThreadSafeModule::takingModuleDo passes ownership of the contained llvm::Module
into the callback, allowing ThreadSafeModules to be used with consuming
operations like Linker::link.
llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h
llvm/unittests/ExecutionEngine/Orc/ThreadSafeModuleTest.cpp