summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_jit.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-09-26 09:33:32 +0100
committerJosé Fonseca <[email protected]>2009-09-26 09:37:43 +0100
commit1df539ce87ab38ebae67d63a353b01f4cf5edc79 (patch)
tree65d1c818cf60cdb98fd5dbdb0df6a42eb8a237a2 /src/gallium/drivers/llvmpipe/lp_jit.c
parent28f531e3fe95c9fad2bf2f09aef0343ab079bff2 (diff)
llvmpipe: Allow building with LLVM 2.6 too.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_jit.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_jit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_jit.c b/src/gallium/drivers/llvmpipe/lp_jit.c
index b4a22ff4a97..f7111c1e5cf 100644
--- a/src/gallium/drivers/llvmpipe/lp_jit.c
+++ b/src/gallium/drivers/llvmpipe/lp_jit.c
@@ -147,6 +147,11 @@ lp_jit_screen_init(struct llvmpipe_screen *screen)
{
char *error = NULL;
+#ifdef LLVM_NATIVE_ARCH
+ LLVMLinkInJIT();
+ LLVMInitializeNativeTarget();
+#endif
+
screen->module = LLVMModuleCreateWithName("llvmpipe");
screen->provider = LLVMCreateModuleProviderForExistingModule(screen->module);