clover/llvm: Get rid of compile_program_llvm().
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 17 May 2016 14:03:16 +0000 (16:03 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 12 Jul 2016 03:34:35 +0000 (20:34 -0700)
Superseded by compile_program() and link_program().

Reviewed-by: Serge Martin <edb+mesa@sigluy.net>
Tested-by: Jan Vesely <jan.vesely@rutgers.edu>
src/gallium/state_trackers/clover/core/compiler.hpp
src/gallium/state_trackers/clover/llvm/invocation.cpp

index 0ed81fb35104bb627b9935a3c06ea4871f06e825..572a9f437625232d5dfbef79a94ffc188bec8c5a 100644 (file)
 
 namespace clover {
    typedef std::vector<std::pair<std::string, std::string> > 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
index 944c30566c0ac0444d880693b173beba6f5de4d3..4b7de260eb8f3c6e321a59ab3f3340098c8ee2d0 100644 (file)
@@ -281,14 +281,3 @@ clover::llvm::link_program(const std::vector<module> &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);
-}