[PATCH] D51551: [LLJIT] Add API to expose linking layer from LLJIT classes

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 19 11:33:02 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL342567: [LLJIT] Add API to expose linking layer from LLJIT classes (authored by cbieneman, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D51551

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


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<ExecutionSession> ES, std::unique_ptr<TargetMachine> TM,
         DataLayout DL);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51551.166156.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180919/26319bd4/attachment.bin>


More information about the llvm-commits mailing list