X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbelive.c;h=bce02065983518c42fcc77c7712a5b40f78db8f7;hb=f48209ee1e8d81959bd3bd15f456afa4355f8303;hp=ae17a63381c7b1ba6e16d819c005df386279f856;hpb=e03dd955762d16d38fdec0e2d7c24bf36d0ecc2e;p=libfirm diff --git a/ir/be/belive.c b/ir/be/belive.c index ae17a6338..bce020659 100644 --- a/ir/be/belive.c +++ b/ir/be/belive.c @@ -190,6 +190,17 @@ void be_liveness_dump(ir_graph *irg, FILE *f) irg_block_walk_graph(irg, dump_liveness_walker, NULL, f); } +void be_liveness_dumpto(ir_graph *irg, const char *cls_name) +{ + FILE *f; + char buf[128]; + ir_snprintf(buf, sizeof(buf), "%F_%s-live.txt", irg, cls_name); + if((f = fopen(buf, "wt")) != NULL) { + be_liveness_dump(irg, f); + fclose(f); + } +} + static void dom_check(ir_node *irn, void *data) { if(!is_Block(irn) && irn != get_irg_end(get_irn_irg(irn))) {