[Mesa-dev,43/47] clover/llvm: Get rid of compile_program_llvm().

Submitted by Francisco Jerez on July 4, 2016, 12:51 a.m.

Details

Message ID 20160704005156.5703-44-currojerez@riseup.net
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Francisco Jerez July 4, 2016, 12:51 a.m.
Superseded by compile_program() and link_program().

Reviewed-by: Serge Martin <edb+mesa@sigluy.net>
---
 src/gallium/state_trackers/clover/core/compiler.hpp   |  7 -------
 src/gallium/state_trackers/clover/llvm/invocation.cpp | 11 -----------
 2 files changed, 18 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/gallium/state_trackers/clover/core/compiler.hpp b/src/gallium/state_trackers/clover/core/compiler.hpp
index 0ed81fb..572a9f4 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<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
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index 944c305..4b7de26 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<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);
-}