projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reordered struct for smaller memory print on 64bit
[libfirm]
/
ir
/
common
/
statistics.c
diff --git
a/ir/common/statistics.c
b/ir/common/statistics.c
index
d0b68ba
..
4dcfc02
100644
(file)
--- a/
ir/common/statistics.c
+++ b/
ir/common/statistics.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-37,8
+37,9
@@
/* Statistics about allocated datastructures: counts. */
static void count_nodes(ir_node *n, void *env) {
/* Statistics about allocated datastructures: counts. */
static void count_nodes(ir_node *n, void *env) {
- int * counter_ptr = (int *)env;
- (*counter_ptr)++;
+ int * counter_ptr = (int *)env;
+ (void) n;
+ (*counter_ptr)++;
}
}
@@
-46,10
+47,12
@@
static void count_nodes(ir_node *n, void *env) {
* totals. */
void print_graph_counts(int verbosity) {
int i, counter, total = 0;
* totals. */
void print_graph_counts(int verbosity) {
int i, counter, total = 0;
- int view = get_interprocedural_view();
ir_graph *old = current_ir_graph;
ir_graph *old = current_ir_graph;
+#ifdef INTERPROCEDURAL_VIEW
+ int view = get_interprocedural_view();
set_interprocedural_view(0);
set_interprocedural_view(0);
+#endif
for (i = 0; i < get_irp_n_irgs(); i++) {
counter = 0;
for (i = 0; i < get_irp_n_irgs(); i++) {
counter = 0;
@@
-61,7
+64,9
@@
void print_graph_counts(int verbosity) {
printf(" +++ There are %d graphs with total %d nodes.\n", get_irp_n_irgs(), total);
current_ir_graph = old;
printf(" +++ There are %d graphs with total %d nodes.\n", get_irp_n_irgs(), total);
current_ir_graph = old;
+#ifdef INTERPROCEDURAL_VIEW
set_interprocedural_view(view);
set_interprocedural_view(view);
+#endif
}
/** Prints number of types, number of entities and totals.
}
/** Prints number of types, number of entities and totals.
@@
-89,12
+94,14
@@
void print_type_counts(int verbosity) {
/** Prints number of tarvals.
* */
void print_tarval_counts(int verbosity) {
/** Prints number of tarvals.
* */
void print_tarval_counts(int verbosity) {
+ (void) verbosity;
printf("tarval count not implemented.\n\n");
}
/** Prints number of idents.
* */
void print_ident_counts(int verbosity) {
printf("tarval count not implemented.\n\n");
}
/** Prints number of idents.
* */
void print_ident_counts(int verbosity) {
+ (void) verbosity;
printf("ident count not implemented.\n\n");
}
printf("ident count not implemented.\n\n");
}