4 * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
6 * This file is part of libFirm.
8 * This file may be distributed and/or modified under the terms of the
9 * GNU General Public License version 2 as published by the Free Software
10 * Foundation and appearing in the file LICENSE.GPL included in the
11 * packaging of this file.
13 * Licensees holding valid libFirm Professional Edition licenses may use
14 * this file in accordance with the libFirm Commercial License.
15 * Agreement provided with the Software.
17 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
18 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24 * @brief Useful Macros for Debugging
26 * @date Sat Nov 13 19:30:21 CET 2004
34 pto_debug: Useful Macros for Debugging
37 # include "pto_debug.h"
38 # include "pto_comp.h"
42 /* # include "xmalloc.h" */
46 /* Local Data Types: */
48 /* Local Variables: */
49 static int dbg_lvl = 0;
51 /* Local Prototypes: */
53 /* ===================================================
55 =================================================== */
58 /* ===================================================
59 Exported Implementation:
60 =================================================== */
66 void set_dbg_lvl (int lvl)
68 /* fprintf (stdout, "%s:%s (): dbg_lvl: %i -> %i\n", */
69 /* __FILE__, __FUNCTION__, dbg_lvl, lvl); */
73 void pto_print_pto (ir_node *node)
75 pto_t *pto = get_node_pto (node);
77 fprintf (stdout, "pto (%s[%li]) = ", OPNAME (node), OPNUM (node));
79 qset_print (pto->values, stdout);
81 fprintf (stdout, "NULL");
89 Revision 1.5 2005/02/25 16:47:51 liekweg
92 Revision 1.4 2004/12/20 17:34:35 liekweg
93 fix recursion handling
95 Revision 1.3 2004/12/02 16:17:51 beck
96 fixed config.h include
98 Revision 1.2 2004/11/24 14:53:56 liekweg
101 Revision 1.1 2004/11/18 16:37:34 liekweg