X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fphiclass.c;h=af8284e296150d5d3ef8091b242c3ded767aec31;hb=d2dc2564b47d9c113d7e6e598574e9733627fcca;hp=c4ffca9c28260b009d11419f77e467da556811c3;hpb=e8b49f5a1399b14137f0053ef1675686146351fe;p=libfirm diff --git a/ir/ana/phiclass.c b/ir/ana/phiclass.c index c4ffca9c2..af8284e29 100644 --- a/ir/ana/phiclass.c +++ b/ir/ana/phiclass.c @@ -2,8 +2,13 @@ * @author Daniel Grund * @date 09.08.2005 */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif -#include +#ifdef HAVE_STDLIB_H +# include +#endif #include "debug.h" #include "irgwalk.h" @@ -11,8 +16,7 @@ #include "iredges_t.h" #include "phiclass_t.h" -#define DEBUG_LVL SET_LEVEL_0 -static firm_dbg_module_t *dbg = NULL; +DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;) size_t phi_irn_data_offset = 0; @@ -108,7 +112,6 @@ pset *get_phi_class(const ir_node *irn) { } void phi_class_init(void) { - dbg = firm_dbg_register("ir.ana.phiclass"); - firm_dbg_set_mask(dbg, DEBUG_LVL); + FIRM_DBG_REGISTER(dbg, "ir.ana.phiclass"); phi_irn_data_offset = register_additional_node_data(sizeof(phi_info_t)); }