From 855d51840dbb14888b4a727c495e01f96027985a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 29 Nov 2015 11:12:40 -0700 Subject: remove LLVMZigTargetMachineEmitToFile The llvm C API provided function is adequate. --- src/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index 4dbe6f7130..dd1f8a4722 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -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); -- cgit v1.2.3