aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-22 06:07:50 +0000
committerChris Lattner <sabre@nondot.org>2006-03-22 06:07:50 +0000
commit2d52c1b8b9cda559f86a29ba1c8967ce7f768700 (patch)
tree89fb8d119dfaebd2afdfab1d283bcc458399a7b1 /llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
parentd3a3365904fa73ceb1a48add7e168366a861c124 (diff)
downloadllvm-2d52c1b8b9cda559f86a29ba1c8967ce7f768700.zip
llvm-2d52c1b8b9cda559f86a29ba1c8967ce7f768700.tar.gz
llvm-2d52c1b8b9cda559f86a29ba1c8967ce7f768700.tar.bz2
Eliminate the dependency of ExecutionEngine on the JIT/Interpreter libraries.
Now you can build a tool with just the JIT or just the interpreter. llvm-svn: 26946
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Interpreter.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
index e45b4c6..1b547a6 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/llvm/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.
///