From: Aaron Watry Date: Fri, 1 Nov 2013 15:25:43 +0000 (-0500) Subject: clover: fix build with LLVM 3.4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b2c6cd205bc35f0409ccf055a77e8ca6eab0db3;p=mesa.git clover: fix build with LLVM 3.4 dso_list was added as an argument for createInternalizePass in 3.4, and then it was removed again in the same llvm version. Tested-by: Mike Lothian Reviewed-by: Tom Stellard --- diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 4ae496ffb21..3f50317ad20 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -267,12 +267,7 @@ 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 PM.run(*mod); }