diff options
author | Danil Malyshev <dmalyshev@accesssoftek.com> | 2012-05-16 18:50:11 +0000 |
---|---|---|
committer | Danil Malyshev <dmalyshev@accesssoftek.com> | 2012-05-16 18:50:11 +0000 |
commit | 068c65b22d50c265b51886062b2b9c1cb696d67d (patch) | |
tree | 291d4c251d82265b2a45db53727414c6dee2abe0 /lib/ExecutionEngine/MCJIT | |
parent | ab53f8ea6a8aa616b2ae153a5ff941e4a855a07d (diff) | |
download | external_llvm-068c65b22d50c265b51886062b2b9c1cb696d67d.zip external_llvm-068c65b22d50c265b51886062b2b9c1cb696d67d.tar.gz external_llvm-068c65b22d50c265b51886062b2b9c1cb696d67d.tar.bz2 |
Added LLIMCJITMemoryManager to the lli. This manager will be used for MCJIT instead of DefaultJIMMemoryManager.
It's more flexible for MCJIT tasks, in addition it's provides a invalidation instruction cache for code sections which will be used before JIT code will be executed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/MCJIT')
-rw-r--r-- | lib/ExecutionEngine/MCJIT/MCJITMemoryManager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/MCJIT/MCJITMemoryManager.h b/lib/ExecutionEngine/MCJIT/MCJITMemoryManager.h index a68949a..084f9a8 100644 --- a/lib/ExecutionEngine/MCJIT/MCJITMemoryManager.h +++ b/lib/ExecutionEngine/MCJIT/MCJITMemoryManager.h @@ -34,12 +34,12 @@ public: uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, unsigned SectionID) { - return JMM->allocateSpace(Size, Alignment); + return JMM->allocateDataSection(Size, Alignment, SectionID); } uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID) { - return JMM->allocateSpace(Size, Alignment); + return JMM->allocateCodeSection(Size, Alignment, SectionID); } virtual void *getPointerToNamedFunction(const std::string &Name, |