diff options
author | Lang Hames <lhames@gmail.com> | 2014-09-23 16:56:02 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2014-09-23 16:56:02 +0000 |
commit | 0f15490bcd9a0063417b5b7b3dd6ce0edf93dd44 (patch) | |
tree | 66475fffa2ef783d2cd2fab8cf693fce1da277cf /llvm/tools/lli/lli.cpp | |
parent | 5bc56a4b34704e257e7b1aa0adcb08d31beb4e6a (diff) | |
download | bcm5719-llvm-0f15490bcd9a0063417b5b7b3dd6ce0edf93dd44.tar.gz bcm5719-llvm-0f15490bcd9a0063417b5b7b3dd6ce0edf93dd44.zip |
[MCJIT] Delete the JTIMemoryManager and associated APIs.
This patch removes the old JIT memory manager (which does not provide any
useful functionality now that the old JIT is gone), and migrates the few
remaining clients over to SectionMemoryManager.
http://llvm.org/PR20848
llvm-svn: 218316
Diffstat (limited to 'llvm/tools/lli/lli.cpp')
-rw-r--r-- | llvm/tools/lli/lli.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index af72bc4dacd..e9107b90f43 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/tools/lli/lli.cpp @@ -444,13 +444,10 @@ int main(int argc, char **argv, char * const *envp) { else RTDyldMM = new SectionMemoryManager(); builder.setMCJITMemoryManager(RTDyldMM); - } else { - if (RemoteMCJIT) { - errs() << "error: Remote process execution requires -use-mcjit\n"; - exit(1); - } - builder.setJITMemoryManager(ForceInterpreter ? nullptr : - JITMemoryManager::CreateDefaultMemManager()); + } else if (RemoteMCJIT) { + errs() << "error: Remote process execution does not work with the " + "interpreter.\n"; + exit(1); } CodeGenOpt::Level OLvl = CodeGenOpt::Default; |