projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't crash if a Const node has no tarval set yet
[libfirm]
/
ir
/
stat
/
firmstat.c
diff --git
a/ir/stat/firmstat.c
b/ir/stat/firmstat.c
index
da3e6be
..
7eb9047
100644
(file)
--- a/
ir/stat/firmstat.c
+++ b/
ir/stat/firmstat.c
@@
-2048,6
+2048,11
@@
void stat_term(void) {
}
}
+/* returns 1 if statistics were initialized, 0 otherwise */
+int stat_is_active(void) {
+ return status != (stat_info_t *)&status_disable;
+}
+
#else
/* initialize the statistics module. */