diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2015-11-29 11:12:40 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2015-11-29 11:12:40 -0700 |
| commit | 855d51840dbb14888b4a727c495e01f96027985a (patch) | |
| tree | 03b7c52c0bf4c7ca455149261ed960577a7773e4 /src/codegen.cpp | |
| parent | e5d1f0eea592e6efc4c4665eb473de95ef106e8a (diff) | |
| download | zig-855d51840dbb14888b4a727c495e01f96027985a.tar.gz zig-855d51840dbb14888b4a727c495e01f96027985a.zip | |
remove LLVMZigTargetMachineEmitToFile
The llvm C API provided function is adequate.
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
