1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[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

llvm-svn: 342567
This commit is contained in:
Chris Bieneman 2018-09-19 18:29:58 +00:00
parent 81ce398cd5
commit b11205865d

View File

@ -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);