aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorJan Vesely <[email protected]>2015-01-25 16:11:40 -0500
committerTom Stellard <[email protected]>2015-01-26 09:46:41 -0500
commit9cbb9165b9454ccc7f2a6702ce71bc5cd9faba02 (patch)
tree99cb3bf6b7e5164d7598b275122a7ea7efbf2c32 /src/gallium/state_trackers
parent4b94c3fc3136f8e5225956864dd13828c9b81d5f (diff)
clover: Fix build with llvm after r226981
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88783 Signed-off-by: Jan Vesely <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/clover/llvm/invocation.cpp4
1 files changed, 4 insertions, 0 deletions
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);