From 72465fcf57278c43df0290e07d68371c6c292f27 Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Fri, 4 Oct 2013 21:22:30 +0200 Subject: clover: fix building with llvm-3.4 since rev191922 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(-) (limited to 'src/gallium') 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 dso_list; + PM.add(llvm::createInternalizePass(export_list, dso_list)); +#endif // Run link time optimizations Builder.OptLevel = 2; Builder.populateLTOPassManager(PM, false, true); -- cgit v1.2.3