Mesa (master): clover: Fix build with llvm after r226981
Tom Stellard
tstellar at kemper.freedesktop.org
Mon Jan 26 14:54:17 UTC 2015
Module: Mesa
Branch: master
Commit: 9cbb9165b9454ccc7f2a6702ce71bc5cd9faba02
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cbb9165b9454ccc7f2a6702ce71bc5cd9faba02
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date: Sun Jan 25 16:11:40 2015 -0500
clover: Fix build with llvm after r226981
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88783
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
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);
More information about the mesa-commit
mailing list