diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-04-04 23:04:39 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-04-04 23:04:39 +0000 |
commit | 2dcef0505f286b20adb5a4c08bca86e322717993 (patch) | |
tree | 1190d55740b59641874d00e39891c1bbf39426b9 /llvm/lib/ExecutionEngine/MCJIT/MCJIT.h | |
parent | f87b3739cc6d58823d06c1c48a8ea312159f53ce (diff) | |
download | bcm5719-llvm-2dcef0505f286b20adb5a4c08bca86e322717993.tar.gz bcm5719-llvm-2dcef0505f286b20adb5a4c08bca86e322717993.zip |
Layer the memory manager between the JIT and the runtime Dyld.
The JITMemory manager references LLVM IR constructs directly, while the
runtime Dyld works at a lower level and can handle objects which may not
originate from LLVM IR. Introduce a new layer for the memory manager to
handle the interface between them. For the MCJIT, this layer will be almost
entirely simply a call-through w/ translation between the IR objects and
symbol names.
llvm-svn: 128851
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT/MCJIT.h')
-rw-r--r-- | llvm/lib/ExecutionEngine/MCJIT/MCJIT.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h index 915ca0ea1e0..1b507663e4a 100644 --- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h +++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h @@ -24,11 +24,12 @@ namespace llvm { class MCJIT : public ExecutionEngine { MCJIT(Module *M, TargetMachine *tm, TargetJITInfo &tji, - JITMemoryManager *JMM, CodeGenOpt::Level OptLevel, + RTDyldMemoryManager *MemMgr, CodeGenOpt::Level OptLevel, bool AllocateGVsWithCode); TargetMachine *TM; MCContext *Ctx; + RTDyldMemoryManager *MemMgr; // FIXME: These may need moved to a separate 'jitstate' member like the // non-MC JIT does for multithreading and such. Just keep them here for now. |