diff options
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 5168a55fab..e119b714a8 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -152,6 +152,10 @@ CodeGen *codegen_create(Buf *root_src_path, const ZigTarget *target, OutType out return g; } +void codegen_destroy(CodeGen *codegen) { + LLVMDisposeTargetMachine(codegen->target_machine); +} + void codegen_set_output_h_path(CodeGen *g, Buf *h_path) { g->out_h_path = h_path; } |
