clean up some resources

This commit is contained in:
Andrew Kelley
2017-10-15 21:06:04 -04:00
parent e3ad13e054
commit 562f91e875
5 changed files with 10 additions and 1 deletions

View File

@@ -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;
}