projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0064ee5
)
only set deprecated firm_param stuff if it is not NULL
author
Matthias Braun
<matze@braunis.de>
Tue, 25 May 2010 13:49:40 +0000
(13:49 +0000)
committer
Matthias Braun
<matze@braunis.de>
Tue, 25 May 2010 13:49:40 +0000
(13:49 +0000)
[r27586]
ir/common/firm.c
patch
|
blob
|
history
diff --git
a/ir/common/firm.c
b/ir/common/firm.c
index
e6d3196
..
97987a3
100644
(file)
--- a/
ir/common/firm.c
+++ b/
ir/common/firm.c
@@
-91,7
+91,8
@@
void ir_init(const firm_parameter_t *param)
/* initialize all ident stuff */
init_ident(def_params.id_if, 1024);
/* enhanced statistics, need idents and hooks */
/* initialize all ident stuff */
init_ident(def_params.id_if, 1024);
/* enhanced statistics, need idents and hooks */
- firm_init_stat(def_params.enable_statistics);
+ if (def_params.enable_statistics != 0)
+ firm_init_stat(def_params.enable_statistics);
/* Edges need hooks. */
init_edges();
/* create the type kinds. */
/* Edges need hooks. */
init_edges();
/* create the type kinds. */
@@
-111,7
+112,9
@@
void ir_init(const firm_parameter_t *param)
/* initialize all op codes an irnode can consist of */
init_op();
/* called once for each run of this library */
/* initialize all op codes an irnode can consist of */
init_op();
/* called once for each run of this library */
- ir_set_uninitialized_local_variable_func(def_params.initialize_local_func);
+ if (def_params.initialize_local_func != NULL)
+ ir_set_uninitialized_local_variable_func(
+ def_params.initialize_local_func);
/* initialize reassociation */
firm_init_reassociation();
/* initialize function call optimization */
/* initialize reassociation */
firm_init_reassociation();
/* initialize function call optimization */