Index: llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h =================================================================== --- llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h +++ llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h @@ -86,6 +86,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);