[Mesa-dev] [PATCH] clover: fix build with LLVM 3.4

Mike Lothian mike at fireburn.co.uk
Sun Nov 3 15:26:05 PST 2013


This fixes the build for me

Feel free to add my tested by


On 1 November 2013 15:25, Aaron Watry <awatry at gmail.com> wrote:

> dso_list was added as an argument for createInternalizePass in 3.4, and
> then
> it was removed again in the same llvm version.
> ---
>  src/gallium/state_trackers/clover/llvm/invocation.cpp | 5 -----
>  1 file changed, 5 deletions(-)
>
> diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp
> b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> index 4ae496f..3f50317 100644
> --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
> +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> @@ -267,12 +267,7 @@ namespace {
>           llvm::Function *kernel = *I;
>           export_list.push_back(kernel->getName().data());
>        }
> -#if HAVE_LLVM < 0x0304
>        PM.add(llvm::createInternalizePass(export_list));
> -#else
> -      std::vector<const char*> dso_list;
> -      PM.add(llvm::createInternalizePass(export_list, dso_list));
> -#endif
>        PM.run(*mod);
>     }
>
> --
> 1.8.3.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131103/ca97c155/attachment.html>


More information about the mesa-dev mailing list