summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_helper.cpp
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2019-07-01 16:55:28 +0200
committerBas Nieuwenhuizen <[email protected]>2019-07-04 10:52:26 +0000
commitb398230e6d7412e468985dcc9c7804e8e637674b (patch)
tree73432bb4408808c6ef499d23e0e943abaf0618d1 /src/amd/common/ac_llvm_helper.cpp
parent6a220e67cef359c3dc9978a1d730b1d2b5fba5c7 (diff)
amd/common: remove unused ac_compile_module_to_binary
Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_helper.cpp')
-rw-r--r--src/amd/common/ac_llvm_helper.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/amd/common/ac_llvm_helper.cpp b/src/amd/common/ac_llvm_helper.cpp
index 533baf3be04..d392c0ece7f 100644
--- a/src/amd/common/ac_llvm_helper.cpp
+++ b/src/amd/common/ac_llvm_helper.cpp
@@ -211,20 +211,6 @@ void ac_destroy_llvm_passes(struct ac_compiler_passes *p)
}
/* This returns false on failure. */
-bool ac_compile_module_to_binary(struct ac_compiler_passes *p, LLVMModuleRef module,
- struct ac_shader_binary *binary)
-{
- p->passmgr.run(*llvm::unwrap(module));
-
- bool success = ac_elf_read(p->ostream.buffer, p->ostream.written, binary);
- p->ostream.clear();
-
- if (!success)
- fprintf(stderr, "amd: cannot read an ELF shader binary\n");
- return success;
-}
-
-/* This returns false on failure. */
bool ac_compile_module_to_elf(struct ac_compiler_passes *p, LLVMModuleRef module,
char **pelf_buffer, size_t *pelf_size)
{