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

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 31 11:23:59 PDT 2018


beanz created this revision.
beanz added a reviewer: lhames.

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


Repository:
  rL LLVM

https://reviews.llvm.org/D51551

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


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51551.163570.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180831/92378c0a/attachment.bin>


More information about the llvm-commits mailing list