llvmpipe: don't call LLVMCreateJITCompiler() twice
authorBrian Paul <brianp@vmware.com>
Thu, 29 Jul 2010 18:49:12 +0000 (12:49 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 29 Jul 2010 18:51:45 +0000 (12:51 -0600)
commitd05cb9f0187984e461b41eb1ba6ca2adf0593c74
tree0be1dde26a25e4d9e00ea7836a8ecdcb64fc9374
parent8f3fe7e2f0a3ce1a5c45fd204b0105f3b501e641
llvmpipe: don't call LLVMCreateJITCompiler() twice

Fixes a failed assertion with LLVM 2.6:

<unnamed>::JITResolver::JITResolver(llvm::JIT&): Assertion
`TheJITResolver == 0&&  "Multiple JIT resolvers?"' failed.

Though, not everyone seems to experience this problem.
src/gallium/drivers/llvmpipe/lp_test_blend.c
src/gallium/drivers/llvmpipe/lp_test_conv.c
src/gallium/drivers/llvmpipe/lp_test_printf.c
src/gallium/drivers/llvmpipe/lp_test_round.c
src/gallium/drivers/llvmpipe/lp_test_sincos.c