[llvm] r342567 - [LLJIT] Add API to expose linking layer from LLJIT classes

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 19 11:29:58 PDT 2018


Author: cbieneman
Date: Wed Sep 19 11:29:58 2018
New Revision: 342567

URL: http://llvm.org/viewvc/llvm-project?rev=342567&view=rev
Log:
[LLJIT] Add API to expose linking layer from LLJIT classes

Summary: This patch just surfaces the object linking layer from the LLJIT classes so that clients can take advantage of the changes implemented in r341154.

Reviewers: lhames

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D51551

Modified:
    llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h?rev=342567&r1=342566&r2=342567&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h Wed Sep 19 11:29:58 2018
@@ -86,6 +86,9 @@ public:
   /// 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<ExecutionSession> ES, std::unique_ptr<TargetMachine> TM,
         DataLayout DL);




More information about the llvm-commits mailing list