[Mesa-dev] [PATCH 1/1] clover: Fix build with llvm after r226981
Tom Stellard
tom at stellard.net
Mon Jan 26 06:55:02 PST 2015
On Sun, Jan 25, 2015 at 04:11:40PM -0500, Jan Vesely wrote:
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88783
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Pushed, thanks!
> ---
> 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 6cc07b2..7a0be53 100644
> --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
> +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> @@ -331,7 +331,11 @@ namespace {
>
> llvm::PassManagerBuilder PMB;
> PMB.OptLevel = optimization_level;
> +#if HAVE_LLVM < 0x0307
> PMB.LibraryInfo = new llvm::TargetLibraryInfo(
> +#else
> + PMB.LibraryInfo = new llvm::TargetLibraryInfoImpl(
> +#endif
> llvm::Triple(mod->getTargetTriple()));
> PMB.populateModulePassManager(PM);
> PM.run(*mod);
> --
> 2.1.0
>
More information about the mesa-dev
mailing list