diff options
author | José Fonseca <[email protected]> | 2014-10-23 10:42:12 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2014-10-23 10:42:12 +0100 |
commit | 75ad4fe78e15353344cdd606916b0d512ae382b7 (patch) | |
tree | b77c87b99972ada2fac8503c2bc8db05e7cf75f0 /src/gallium | |
parent | 065256dfc4464cb510f84d638da1b345ff65b693 (diff) |
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.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<BaseMemoryManager*>(CMM); MM = new ShaderMemoryManager(JMM); *OutCode = MM->getGeneratedCode(); builder.setMCJITMemoryManager(MM); +#endif } else { #if HAVE_LLVM < 0x0306 BaseMemoryManager* JMM = reinterpret_cast<BaseMemoryManager*>(CMM); |