nvc0: add support for GL_EXT_demote_to_helper_invocation
[mesa.git] / src / amd / common / ac_llvm_helper.cpp
index 533baf3be04b2c7b517b90ce841cc35ebc762b7c..b7a72ee3fdd3f70055456942d7667fc3f3291ac5 100644 (file)
  *
  */
 
-/* based on Marek's patch to lp_bld_misc.cpp */
-
-// Workaround http://llvm.org/PR23628
-#pragma push_macro("DEBUG")
-#undef DEBUG
-
 #include <cstring>
 
 #include "ac_binary.h"
@@ -210,20 +204,6 @@ void ac_destroy_llvm_passes(struct ac_compiler_passes *p)
        delete 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)