From: Laurent Carlier Date: Fri, 4 Oct 2013 19:22:30 +0000 (+0200) Subject: clover: fix building with llvm-3.4 since rev191922 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72465fcf57278c43df0290e07d68371c6c292f27;p=mesa.git clover: fix building with llvm-3.4 since rev191922 http://llvm.org/viewvc/llvm-project?view=revision&revision=191922 --- 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);