Stefan Dirsch
0c861e09e6
- Add U_clover-Fix-build-against-LLVM-3.8.patch to fix build against llvm 3.8 OBS-URL: https://build.opensuse.org/request/show/356468 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=500
17 lines
752 B
Diff
17 lines
752 B
Diff
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
|
|
index 3b37f08..4d11c24 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);
|