diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-22 06:07:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-22 06:07:50 +0000 |
commit | 2fe4bb06c6c40d16b7a5ae9cdf6bb6fe94d51be0 (patch) | |
tree | 9aa1af4b15d5ac30cf9d801c52a0ddf1e018369f /lib/ExecutionEngine/Interpreter/Interpreter.h | |
parent | 765c93cefda367d8e5a8e0afcd610a7e15bbd987 (diff) |
Eliminate the dependency of ExecutionEngine on the JIT/Interpreter libraries.
Now you can build a tool with just the JIT or just the interpreter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Interpreter.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h index e45b4c6447..1b547a645b 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/lib/ExecutionEngine/Interpreter/Interpreter.h @@ -102,11 +102,15 @@ public: /// void runAtExitHandlers(); + static void Register() { + InterpCtor = create; + } + /// create - Create an interpreter ExecutionEngine. This can never fail. The /// specified IntrinsicLowering implementation will be deleted when the /// Interpreter execution engine is destroyed. /// - static ExecutionEngine *create(Module *M, IntrinsicLowering *IL); + static ExecutionEngine *create(ModuleProvider *M, IntrinsicLowering *IL); /// run - Start execution with the specified function and arguments. /// |