[Mesa-dev] [PATCH] clover: fix building with llvm-3.4 since rev191922
Tom Stellard
tom at stellard.net
Mon Oct 7 08:54:44 PDT 2013
On Fri, Oct 04, 2013 at 09:22:30PM +0200, Laurent Carlier wrote:
> http://llvm.org/viewvc/llvm-project?view=revision&revision=191922
Pushed, thanks!
> ---
> src/gallium/state_trackers/clover/llvm/invocation.cpp | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> index e6cd415..bdc3aee 100644
> --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
> +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> @@ -278,8 +278,12 @@ 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
> // Run link time optimizations
> Builder.OptLevel = 2;
> Builder.populateLTOPassManager(PM, false, true);
> --
> 1.8.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list