[MCJIT] Delete the JTIMemoryManager and associated APIs.
[oota-llvm.git] / tools / lli / lli.cpp
index af72bc4dacd5b28f2e482a93ac3a1e49629105ea..e9107b90f43045d738d0fe5f03360f919be585ed 100644 (file)
@@ -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;