add a new ExecutionEngine::createJIT which can be used if you only want
[oota-llvm.git] / include / llvm / ExecutionEngine / ExecutionEngine.h
index ad0a738426e765c8c1bc7fdd40ebc6109c5751eb..5b33e15d906d5d6628620ce52eef8c823620f08c 100644 (file)
@@ -108,6 +108,14 @@ public:
   /// is appropriate for the current machine.  This takes ownership of the
   /// module.
   static ExecutionEngine *create(Module *M);
+
+  /// createJIT - This is the factory method for creating a JIT for the current
+  /// machine, it does not fall back to the interpreter.  This takes ownership
+  /// of the ModuleProvider and JITMemoryManager if successful.
+  static ExecutionEngine *createJIT(ModuleProvider *MP,
+                                    std::string *ErrorStr = 0,
+                                    JITMemoryManager *JMM = 0);
+  
   
   
   /// addModuleProvider - Add a ModuleProvider to the list of modules that we