mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 17:25:49 +00:00
[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
This commit is contained in:
@@ -41,7 +41,6 @@ class Function;
|
|||||||
class GlobalVariable;
|
class GlobalVariable;
|
||||||
class GlobalValue;
|
class GlobalValue;
|
||||||
class JITEventListener;
|
class JITEventListener;
|
||||||
class JITMemoryManager;
|
|
||||||
class MachineCodeInfo;
|
class MachineCodeInfo;
|
||||||
class MutexGuard;
|
class MutexGuard;
|
||||||
class ObjectCache;
|
class ObjectCache;
|
||||||
@@ -523,8 +522,7 @@ public:
|
|||||||
/// is only appropriate for the MCJIT; setting this and configuring the builder
|
/// is only appropriate for the MCJIT; setting this and configuring the builder
|
||||||
/// to create anything other than MCJIT will cause a runtime error. If create()
|
/// to create anything other than MCJIT will cause a runtime error. If create()
|
||||||
/// is called and is successful, the created engine takes ownership of the
|
/// is called and is successful, the created engine takes ownership of the
|
||||||
/// memory manager. This option defaults to NULL. Using this option nullifies
|
/// memory manager. This option defaults to NULL.
|
||||||
/// the setJITMemoryManager() option.
|
|
||||||
EngineBuilder &setMCJITMemoryManager(RTDyldMemoryManager *mcjmm) {
|
EngineBuilder &setMCJITMemoryManager(RTDyldMemoryManager *mcjmm) {
|
||||||
MCJMM = mcjmm;
|
MCJMM = mcjmm;
|
||||||
return *this;
|
return *this;
|
||||||
|
@@ -16,7 +16,6 @@
|
|||||||
#include "llvm/ADT/SmallString.h"
|
#include "llvm/ADT/SmallString.h"
|
||||||
#include "llvm/ADT/Statistic.h"
|
#include "llvm/ADT/Statistic.h"
|
||||||
#include "llvm/ExecutionEngine/GenericValue.h"
|
#include "llvm/ExecutionEngine/GenericValue.h"
|
||||||
#include "llvm/ExecutionEngine/JITMemoryManager.h"
|
|
||||||
#include "llvm/ExecutionEngine/ObjectBuffer.h"
|
#include "llvm/ExecutionEngine/ObjectBuffer.h"
|
||||||
#include "llvm/ExecutionEngine/ObjectCache.h"
|
#include "llvm/ExecutionEngine/ObjectCache.h"
|
||||||
#include "llvm/IR/Constants.h"
|
#include "llvm/IR/Constants.h"
|
||||||
|
@@ -23,7 +23,6 @@
|
|||||||
#include "llvm/ExecutionEngine/GenericValue.h"
|
#include "llvm/ExecutionEngine/GenericValue.h"
|
||||||
#include "llvm/ExecutionEngine/Interpreter.h"
|
#include "llvm/ExecutionEngine/Interpreter.h"
|
||||||
#include "llvm/ExecutionEngine/JITEventListener.h"
|
#include "llvm/ExecutionEngine/JITEventListener.h"
|
||||||
#include "llvm/ExecutionEngine/JITMemoryManager.h"
|
|
||||||
#include "llvm/ExecutionEngine/MCJIT.h"
|
#include "llvm/ExecutionEngine/MCJIT.h"
|
||||||
#include "llvm/ExecutionEngine/ObjectCache.h"
|
#include "llvm/ExecutionEngine/ObjectCache.h"
|
||||||
#include "llvm/ExecutionEngine/SectionMemoryManager.h"
|
#include "llvm/ExecutionEngine/SectionMemoryManager.h"
|
||||||
|
@@ -119,10 +119,6 @@ protected:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: This is using the default legacy JITMemoryManager because it
|
|
||||||
// supports poison memory. At some point, we'll need to update this to
|
|
||||||
// use an MCJIT-specific memory manager. It might be nice to have the
|
|
||||||
// poison memory option there too.
|
|
||||||
RTDyldMemoryManager *MemMgr = new SectionMemoryManager();
|
RTDyldMemoryManager *MemMgr = new SectionMemoryManager();
|
||||||
if (!MemMgr) {
|
if (!MemMgr) {
|
||||||
errs() << "Unable to create memory manager.";
|
errs() << "Unable to create memory manager.";
|
||||||
@@ -155,7 +151,6 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
LLVMContext Context; // Global ownership
|
LLVMContext Context; // Global ownership
|
||||||
JITMemoryManager *JMM; // Owned by ExecutionEngine.
|
|
||||||
std::unique_ptr<ExecutionEngine> TheJIT;
|
std::unique_ptr<ExecutionEngine> TheJIT;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user