mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
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.
This commit is contained in:
parent
065256dfc4
commit
75ad4fe78e
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue