From: Jan Vesely Date: Sun, 25 Jan 2015 21:11:40 +0000 (-0500) Subject: clover: Fix build with llvm after r226981 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cbb9165b9454ccc7f2a6702ce71bc5cd9faba02;p=mesa.git clover: Fix build with llvm after r226981 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88783 Signed-off-by: Jan Vesely --- diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 6cc07b254a6..7a0be539319 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);