clean up some resources

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

No files matched your search

+4
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;
}