summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaurent Carlier <[email protected]>2013-10-04 21:22:30 +0200
committerTom Stellard <[email protected]>2013-10-07 08:41:02 -0700
commit72465fcf57278c43df0290e07d68371c6c292f27 (patch)
tree89a6d9a8ba64f08637fe1f7897daa6b899833ca2 /src
parente58dd465f07b36fb68758a22fbd77c4bee3a2a7d (diff)
clover: fix building with llvm-3.4 since rev191922
http://llvm.org/viewvc/llvm-project?view=revision&revision=191922
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/clover/llvm/invocation.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index e6cd41599c3..bdc3aee670c 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -278,8 +278,12 @@ namespace {
llvm::Function *kernel = *I;
export_list.push_back(kernel->getName().data());
}
+#if HAVE_LLVM < 0x0304
PM.add(llvm::createInternalizePass(export_list));
-
+#else
+ std::vector<const char*> dso_list;
+ PM.add(llvm::createInternalizePass(export_list, dso_list));
+#endif
// Run link time optimizations
Builder.OptLevel = 2;
Builder.populateLTOPassManager(PM, false, true);