Commit e086d97b authored by Sebastian Hack's avatar Sebastian Hack
Browse files

Made ir_debug internal.

[r4508]
parent 90bb79fa
......@@ -17,14 +17,14 @@ subdir := ir/ir
INSTALL_HEADERS = irprog.h irgraph.h irnode.h irmode.h irop.h ircons.h \
irflag.h irvrfy.h irgwalk.h irgmod.h iropt.h irdump.h \
irgopt.h ircgcons.h ircgopt.h irreflect.h irarch.h
irgopt.h ircgcons.h ircgopt.h irreflect.h irarch.h irprintf.h
SOURCES = $(INSTALL_HEADERS)
SOURCES += Makefile.in \
ircons.c ircons_t.h irgmod.c irgraph_t.h irnode.c iropt.c iropt_t.h irvrfy.c \
irgwalk.c irgwalk_blk.c irdump.c irdumptxt.c irgopt.c irgopt_t.h irnode_t.h \
irmode.c irop.c irprog.c irflag.c irflag_t.h irgraph.c irprintf.h \
irmode.c irop.c irprog.c irflag.c irflag_t.h irgraph.c irprintf_t.h \
irmode_t.h irop_t.h irprog_t.h ircgcons.c ircgopt.c irreflect.c irarch.c irprintf.c
include $(topdir)/MakeRules
......
......@@ -20,6 +20,9 @@
#ifndef _IRPRINTF_H
#define _IRPRINTF_H
#include <stddef.h>
#include <stdio.h>
/**
* Something that can append strings and chars to something.
*/
......@@ -101,16 +104,5 @@ void ir_fprintf(FILE *f, const char *fmt, ...);
*/
void ir_snprintf(char *buf, size_t n, const char *fmt, ...);
#ifdef DEBUG_libfirm
#define ir_debugf(p) ir_printf p
#define ir_fdebugf(p) ir_fprintf p
#else
#define ir_debugf(p)
#define ir_fdebugf(p)
#endif
#endif
/*
* Project: libFIRM
* File name: ir/ir/irprintf_t.h
* Purpose: A little printf understanding some firm types.
* Author: Sebastian Hack
* Created: 29.11.2004
* CVS-ID: $Id$
* Copyright: (c) 1998-2004 Universitt Karlsruhe
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
#ifndef _IRPRINTF_T_H
#define _IRPRINTF_T_H
#include "irprintf.h"
#ifdef DEBUG_libfirm
#define ir_debugf ir_printf
#define ir_fdebugf ir_fprintf
#else
static INLINE void ir_debugf(const char *fmt, ...)
{
}
static INLINE void ir_fdebugf(FILE *f, const char *fmt, ...)
{
}
#endif
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment