From 2fe4bb06c6c40d16b7a5ae9cdf6bb6fe94d51be0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 22 Mar 2006 06:07:50 +0000 Subject: 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 --- lib/ExecutionEngine/Interpreter/Interpreter.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.h') 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. /// -- cgit v1.2.3