From: Francisco Jerez Date: Tue, 17 May 2016 14:03:16 +0000 (+0200) Subject: clover/llvm: Get rid of compile_program_llvm(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2e37fe1f95916c7669fe84118acd2e3683ae077;p=mesa.git clover/llvm: Get rid of compile_program_llvm(). Superseded by compile_program() and link_program(). Reviewed-by: Serge Martin Tested-by: Jan Vesely --- diff --git a/src/gallium/state_trackers/clover/core/compiler.hpp b/src/gallium/state_trackers/clover/core/compiler.hpp index 0ed81fb3510..572a9f43762 100644 --- a/src/gallium/state_trackers/clover/core/compiler.hpp +++ b/src/gallium/state_trackers/clover/core/compiler.hpp @@ -29,13 +29,6 @@ namespace clover { typedef std::vector > header_map; - - module compile_program_llvm(const std::string &source, - const header_map &headers, - pipe_shader_ir ir, - const std::string &target, - const std::string &opts, - std::string &r_log); } #endif diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 944c30566c0..4b7de260eb8 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -281,14 +281,3 @@ clover::llvm::link_program(const std::vector &modules, unreachable("Unsupported IR."); } } - -module -clover::compile_program_llvm(const std::string &source, - const header_map &headers, - enum pipe_shader_ir ir, - const std::string &target, - const std::string &opts, - std::string &r_log) { - const auto mod = compile_program(source, headers, target, opts, r_log); - return link_program({ mod }, ir, target, opts, r_log); -}