clover: Fix build with llvm after r226981
authorJan Vesely <jan.vesely@rutgers.edu>
Sun, 25 Jan 2015 21:11:40 +0000 (16:11 -0500)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 26 Jan 2015 14:46:41 +0000 (09:46 -0500)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88783
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
src/gallium/state_trackers/clover/llvm/invocation.cpp

index 6cc07b254a61888dcb486d7af08567855692d140..7a0be539319b50cfd4b62b5d32795b46373481b7 100644 (file)
@@ -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);