Commit d21ef9d9 authored by Michael Beck's avatar Michael Beck
Browse files

init_firm() has now a parameter default_initialize_local_variable_func_t, which is a callback

for uninitialised local variables.

[r829]
parent 967c8d08
......@@ -24,7 +24,7 @@
# include "irgraph_t.h"
void
init_firm (void)
init_firm (default_initialize_local_variable_func_t *func)
{
/* register the character 'I' as variable for ident outputs. */
xprintf_register ('I', ident_print);
......@@ -49,8 +49,8 @@ init_firm (void)
init_mangle ();
/* initalize all op codes an irnode can consist of */
init_op ();
/* called once for each run of this library, empty right now... @@@!!!
init_cons (); */
/* called once for each run of this library */
init_cons (func);
/* Builds a construct allowing to access all information to be constructed
later. */
init_irprog ();
......
......@@ -92,7 +92,13 @@
/**
* Initialize the firm library.
*
* @param func This function is called, whenever a local variable is used before definition
*
* The parameter func may be NULL. In that case, the old FIRM behavior is conserved.
*
* @see default_initialize_local_variable_func_t
*/
void init_firm (void);
void init_firm (default_initialize_local_variable_func_t *func);
# endif /* _FIRM_H_ */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment