summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestat.h
diff options
context:
space:
mode:
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>2006-04-10 17:00:45 +0200
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>2006-04-10 17:00:45 +0200
commit21be21bc5d75b5ec68149e5099ed2420c08ea168 (patch)
tree7ae78b07d880e47cb628c80fed5395482a65827e /ir/be/bestat.h
parentcd4ab9682891bfdaaf6ccfff2c03e6a3f3b164dd (diff)
bestat is only compiled if FIRMSTAT is defined
Diffstat (limited to 'ir/be/bestat.h')
-rw-r--r--ir/be/bestat.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ir/be/bestat.h b/ir/be/bestat.h
index f6041f0..04e2462 100644
--- a/ir/be/bestat.h
+++ b/ir/be/bestat.h
@@ -1,9 +1,12 @@
#ifndef _BESTAT_H_
#define _BESTAT_H_
+#include "firm_config.h"
#include "be_t.h"
#include "benodesets.h"
+#ifdef FIRM_STATISTICS
+
/**
* Collects statistics information about register pressure.
* @param birg The be irg object containing the irg
@@ -11,10 +14,17 @@
void be_do_stat_reg_pressure(be_irg_t *birg);
/**
- * Collect statistics about amount of redy nodes per block
+ * Collect statistics about amount of ready nodes per block
* @param block The block
* @param ready_set A set of ready nodes
*/
void be_do_stat_sched_ready(ir_node *block, nodeset *ready_set);
+#else
+
+#define be_do_stat_reg_pressure(birg)
+#define be_do_stat_sched_ready(block, ready_set)
+
+#endif /* FIRM_STATISTICS */
+
#endif /* _BESTAT_H_ */