Index: include/llvm/ExecutionEngine/Orc/LLJIT.h =================================================================== --- include/llvm/ExecutionEngine/Orc/LLJIT.h +++ include/llvm/ExecutionEngine/Orc/LLJIT.h @@ -87,6 +87,9 @@ /// Runs all not-yet-run static destructors. Error runDestructors() { return DtorRunner.run(); } + /// Returns a reference to the ObjLinkingLayer + RTDyldObjectLinkingLayer2 &getObjLinkingLayer() { return ObjLinkingLayer; } + protected: LLJIT(std::unique_ptr ES, std::unique_ptr TM, DataLayout DL);