summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-09-23 17:10:24 +0000
committerLang Hames <lhames@gmail.com>2014-09-23 17:10:24 +0000
commit051742431aaea59b5a8c1676217f7469145c3a92 (patch)
tree0fe4517cd30b39e2387c3fd1c904e664f480deff /llvm
parent7f19f2281afbc3b94ac57ec6028ba7f186970b82 (diff)
downloadbcm5719-llvm-051742431aaea59b5a8c1676217f7469145c3a92.tar.gz
bcm5719-llvm-051742431aaea59b5a8c1676217f7469145c3a92.zip
[MCJIT] Remove a few more references to JITMemoryManager that survived r218316.
llvm-svn: 218318
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ExecutionEngine/ExecutionEngine.h4
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp1
-rw-r--r--llvm/tools/lli/lli.cpp1
-rw-r--r--llvm/tools/llvm-jitlistener/llvm-jitlistener.cpp5
4 files changed, 1 insertions, 10 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h b/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
index 36b885d288d..b9c0b61b603 100644
--- a/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
@@ -41,7 +41,6 @@ class Function;
class GlobalVariable;
class GlobalValue;
class JITEventListener;
-class JITMemoryManager;
class MachineCodeInfo;
class MutexGuard;
class ObjectCache;
@@ -523,8 +522,7 @@ public:
/// 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()
/// is called and is successful, the created engine takes ownership of the
- /// memory manager. This option defaults to NULL. Using this option nullifies
- /// the setJITMemoryManager() option.
+ /// memory manager. This option defaults to NULL.
EngineBuilder &setMCJITMemoryManager(RTDyldMemoryManager *mcjmm) {
MCJMM = mcjmm;
return *this;
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index cf19ebb6fd7..bb7377d855a 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -16,7 +16,6 @@
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ExecutionEngine/GenericValue.h"
-#include "llvm/ExecutionEngine/JITMemoryManager.h"
#include "llvm/ExecutionEngine/ObjectBuffer.h"
#include "llvm/ExecutionEngine/ObjectCache.h"
#include "llvm/IR/Constants.h"
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp
index e9107b90f43..276740b4d44 100644
--- a/llvm/tools/lli/lli.cpp
+++ b/llvm/tools/lli/lli.cpp
@@ -23,7 +23,6 @@
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/ExecutionEngine/Interpreter.h"
#include "llvm/ExecutionEngine/JITEventListener.h"
-#include "llvm/ExecutionEngine/JITMemoryManager.h"
#include "llvm/ExecutionEngine/MCJIT.h"
#include "llvm/ExecutionEngine/ObjectCache.h"
#include "llvm/ExecutionEngine/SectionMemoryManager.h"
diff --git a/llvm/tools/llvm-jitlistener/llvm-jitlistener.cpp b/llvm/tools/llvm-jitlistener/llvm-jitlistener.cpp
index 1053ad9ab66..0bb6e8bc886 100644
--- a/llvm/tools/llvm-jitlistener/llvm-jitlistener.cpp
+++ b/llvm/tools/llvm-jitlistener/llvm-jitlistener.cpp
@@ -119,10 +119,6 @@ protected:
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();
if (!MemMgr) {
errs() << "Unable to create memory manager.";
@@ -155,7 +151,6 @@ protected:
}
LLVMContext Context; // Global ownership
- JITMemoryManager *JMM; // Owned by ExecutionEngine.
std::unique_ptr<ExecutionEngine> TheJIT;
public:
OpenPOWER on IntegriCloud