[Mesa-dev] [PATCH] st/clover: Fix build against LLVM SVN >= r216583

Francisco Jerez currojerez at riseup.net
Wed Aug 27 23:06:11 PDT 2014


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>
> ---
>  src/gallium/state_trackers/clover/llvm/invocation.cpp | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> index d351bc5..7bca0d6 100644
> --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
> +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> @@ -211,8 +211,13 @@ namespace {
>                                   &c.getDiagnosticOpts()));
>  #endif
>  
> +#if HAVE_LLVM >= 0x0306
> +      c.getPreprocessorOpts().addRemappedFile(name,
> +                                              llvm::MemoryBuffer::getMemBuffer(source).release());
> +#else
>        c.getPreprocessorOpts().addRemappedFile(name,
>                                        llvm::MemoryBuffer::getMemBuffer(source));
> +#endif
>  
>        // Setting this attribute tells clang to link this file before
>        // performing any optimizations.  This is required so that

Reviewed-by: Francisco Jerez <currojerez at riseup.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140828/266a8a74/attachment.sig>


More information about the mesa-dev mailing list