[Mesa-dev] [PATCH] clover: fix building with llvm-3.4 since rev191922
Laurent Carlier
lordheavym at gmail.com
Fri Oct 4 12:22:30 PDT 2013
http://llvm.org/viewvc/llvm-project?view=revision&revision=191922
---
src/gallium/state_trackers/clover/llvm/invocation.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index e6cd415..bdc3aee 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);
--
1.8.4
More information about the mesa-dev
mailing list