summaryrefslogtreecommitdiffhomepage
path: root/ir/lpp
diff options
context:
space:
mode:
authorAndreas Zwinkau <zwinkau@kit.edu>2011-09-15 12:41:38 +0200
committerAndreas Zwinkau <zwinkau@kit.edu>2011-09-15 12:54:18 +0200
commit64d303d4b2d76568d6404e2b6a1683c7e30c827e (patch)
tree095952a3254fca710612b544c4adb6288f43d4a2 /ir/lpp
parentfb346164b23726c2d46268b47ebe0fccd924b8d5 (diff)
wrapping stuff in DEBUG_ONLY
Diffstat (limited to 'ir/lpp')
-rw-r--r--ir/lpp/lpp.c5
-rw-r--r--ir/lpp/lpp_comm.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/ir/lpp/lpp.c b/ir/lpp/lpp.c
index cfb7cc8..2d2c8a9 100644
--- a/ir/lpp/lpp.c
+++ b/ir/lpp/lpp.c
@@ -32,6 +32,7 @@
#include "hashptr.h"
#include "debug.h"
#include "set.h"
+#include "debug.h"
#include "sp_matrix.h"
#include "mps.h"
@@ -42,7 +43,7 @@
#define HASH_NAME_T(n) HASH_STR((n)->name, strlen((n)->name))
-static firm_dbg_module_t *dbg = NULL;
+DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
static inline char *obst_xstrdup(struct obstack *obst, const char *str)
{
@@ -79,7 +80,7 @@ lpp_t *lpp_new_userdef(const char *name, lpp_opt_t opt_type,
lpp_t *lpp;
int idx;
- dbg = firm_dbg_register("lpp");
+ DEBUG_ONLY(dbg = firm_dbg_register("lpp");)
lpp = XMALLOCZ(lpp_t);
obstack_init(&lpp->obst);
diff --git a/ir/lpp/lpp_comm.c b/ir/lpp/lpp_comm.c
index 616b643..0a78591 100644
--- a/ir/lpp/lpp_comm.c
+++ b/ir/lpp/lpp_comm.c
@@ -55,6 +55,7 @@ struct _lpp_comm_t {
char *r_buf;
};
+DEBUG_ONLY(
static inline firm_dbg_module_t *get_dbg_module(void)
{
static firm_dbg_module_t *dbg = NULL;
@@ -66,6 +67,7 @@ static inline firm_dbg_module_t *get_dbg_module(void)
}
#define dbg get_dbg_module()
+)
/**
* Try to read some bytes but block until a certain amount is read.