X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Fpseudo_irg.c;h=5ab5fcbcf7bf4d1bd61c2255942117bf0b2b4f20;hb=23ea16875f38dc0c067cce24f64b5c70f3acc496;hp=968750d98d20780060ed235b8f75c1e1529a53a2;hpb=8881d93d56384f5f37104d692ef7c68b7f949325;p=libfirm diff --git a/ir/ir/pseudo_irg.c b/ir/ir/pseudo_irg.c index 968750d98..5ab5fcbcf 100644 --- a/ir/ir/pseudo_irg.c +++ b/ir/ir/pseudo_irg.c @@ -24,13 +24,13 @@ #include "array.h" -/** Returns the number of pseudo graphs in the program. */ +/* Returns the number of pseudo graphs in the program. */ int get_irp_n_pseudo_irgs(void) { assert (irp && irp->pseudo_graphs); return ARR_LEN(irp->pseudo_graphs); } -/** Returns the number of pseudo graphs in the program. */ +/* Returns the pos'th pseudo graph in the program. */ ir_graph *get_irp_pseudo_irg(int pos) { assert(0 <= pos && pos <= get_irp_n_pseudo_irgs()); return irp->pseudo_graphs[pos]; @@ -54,7 +54,7 @@ new_pseudo_ir_graph(entity *ent, int n_loc) { return res; } -/** Returns true ir ir_graph is pseudo graph. */ +/* Returns non-zero ir ir_graph is pseudo graph. */ int is_pseudo_ir_graph(ir_graph *irg) { int i, n_pseudo_irgs; @@ -64,9 +64,9 @@ int is_pseudo_ir_graph(ir_graph *irg) n_pseudo_irgs = get_irp_n_pseudo_irgs(); for (i = 0; i < n_pseudo_irgs; ++i) { - if (irg == get_irp_pseudo_irg(i)) return true; + if (irg == get_irp_pseudo_irg(i)) return 1; } - return false; + return 0; } static int visit_pseudo_irgs = 0;