From: José Fonseca Date: Thu, 23 Oct 2014 09:42:12 +0000 (+0100) Subject: gallivm: Fix build with LLVM 3.3. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75ad4fe7;p=mesa.git gallivm: Fix build with LLVM 3.3. The setMCJITMemoryManager method doesn't exist in LLVM 3.3. I thought I had tested the latest version of my earlier change with LLVM 3.3, but it looks I missed it. Trivial. --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index 776af47909b..6bc4d8142f6 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -493,11 +493,13 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT, ShaderMemoryManager *MM; if (useMCJIT) { +#if HAVE_LLVM > 0x0303 BaseMemoryManager* JMM = reinterpret_cast(CMM); MM = new ShaderMemoryManager(JMM); *OutCode = MM->getGeneratedCode(); builder.setMCJITMemoryManager(MM); +#endif } else { #if HAVE_LLVM < 0x0306 BaseMemoryManager* JMM = reinterpret_cast(CMM);