remove LLVMZigTargetMachineEmitToFile

The llvm C API provided function is adequate.
This commit is contained in:
Andrew Kelley
2015-11-29 11:12:40 -07:00
parent e5d1f0eea5
commit 855d51840d
4 changed files with 3 additions and 57 deletions

View File

@@ -1313,7 +1313,7 @@ void code_gen_link(CodeGen *g, const char *out_file) {
}
char *err_msg = nullptr;
if (LLVMZigTargetMachineEmitToFile(g->target_machine, g->module, buf_ptr(&out_file_o),
if (LLVMTargetMachineEmitToFile(g->target_machine, g->module, buf_ptr(&out_file_o),
LLVMObjectFile, &err_msg))
{
zig_panic("unable to write object file: %s", err_msg);