[Mesa-dev] [PATCH] clover: Fix build against LLVM 3.8 SVN >= r255078
Francisco Jerez
currojerez at riseup.net
Wed Dec 9 02:30:02 PST 2015
Michel Dänzer <michel at daenzer.net> writes:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
Looks OK to me,
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
> ---
> src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 ++++
> 1 file changed, 4 insertions(+)
>
> 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);
> --
> 2.6.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151209/aceeb270/attachment.sig>
More information about the mesa-dev
mailing list