summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2015-12-09 15:46:46 +0900
committerMichel Dänzer <[email protected]>2015-12-10 10:45:29 +0900
commitb4a03e7f8f4006eb2c5b09a0611fdda153dd8437 (patch)
tree8cca9966fff2b064b536a460a22942a29815b090 /src/gallium/state_trackers
parente1815bcc47a65cfad65d3017d7e9b49a1b7d0cdb (diff)
clover: Fix build against LLVM 3.8 SVN >= r255078
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/clover/llvm/invocation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index 3b37f0802b0..4d11c2477c7 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -661,7 +661,11 @@ namespace {
if (dump_asm) {
LLVMSetTargetMachineAsmVerbosity(tm, true);
+#if HAVE_LLVM >= 0x0308
+ LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod).release());
+#else
LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod));
+#endif
emit_code(tm, debug_mod, LLVMAssemblyFile, &out_buffer, r_log);
buffer_size = LLVMGetBufferSize(out_buffer);
buffer_data = LLVMGetBufferStart(out_buffer);