llvm.org GIT mirror llvm / e0c253f
[MCJIT] Remove a few more references to JITMemoryManager that survived r218316. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218318 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 6 years ago
4 changed file(s) with 1 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
4040 class GlobalVariable;
4141 class GlobalValue;
4242 class JITEventListener;
43 class JITMemoryManager;
4443 class MachineCodeInfo;
4544 class MutexGuard;
4645 class ObjectCache;
522521 /// is only appropriate for the MCJIT; setting this and configuring the builder
523522 /// to create anything other than MCJIT will cause a runtime error. If create()
524523 /// is called and is successful, the created engine takes ownership of the
525 /// memory manager. This option defaults to NULL. Using this option nullifies
526 /// the setJITMemoryManager() option.
524 /// memory manager. This option defaults to NULL.
527525 EngineBuilder &setMCJITMemoryManager(RTDyldMemoryManager *mcjmm) {
528526 MCJMM = mcjmm;
529527 return *this;
1515 #include "llvm/ADT/SmallString.h"
1616 #include "llvm/ADT/Statistic.h"
1717 #include "llvm/ExecutionEngine/GenericValue.h"
18 #include "llvm/ExecutionEngine/JITMemoryManager.h"
1918 #include "llvm/ExecutionEngine/ObjectBuffer.h"
2019 #include "llvm/ExecutionEngine/ObjectCache.h"
2120 #include "llvm/IR/Constants.h"
2222 #include "llvm/ExecutionEngine/GenericValue.h"
2323 #include "llvm/ExecutionEngine/Interpreter.h"
2424 #include "llvm/ExecutionEngine/JITEventListener.h"
25 #include "llvm/ExecutionEngine/JITMemoryManager.h"
2625 #include "llvm/ExecutionEngine/MCJIT.h"
2726 #include "llvm/ExecutionEngine/ObjectCache.h"
2827 #include "llvm/ExecutionEngine/SectionMemoryManager.h"
118118 return;
119119 }
120120
121 // FIXME: This is using the default legacy JITMemoryManager because it
122 // supports poison memory. At some point, we'll need to update this to
123 // use an MCJIT-specific memory manager. It might be nice to have the
124 // poison memory option there too.
125121 RTDyldMemoryManager *MemMgr = new SectionMemoryManager();
126122 if (!MemMgr) {
127123 errs() << "Unable to create memory manager.";
154150 }
155151
156152 LLVMContext Context; // Global ownership
157 JITMemoryManager *JMM; // Owned by ExecutionEngine.
158153 std::unique_ptr TheJIT;
159154
160155 public: