Commit cb7b2727 authored by Matthias Braun's avatar Matthias Braun
Browse files

add more const qualifiers to hook_merge_nodes()

parent 1dcab6ba
......@@ -102,7 +102,10 @@ typedef void merge_pair_func(ir_node *new_node, ir_node *old_node, dbg_action ac
*
* @see dbg_init()
*/
typedef void merge_sets_func(ir_node **new_node_array, int new_num_entries, ir_node **old_node_array, int old_num_entries, dbg_action action);
typedef void merge_sets_func(ir_node *const *new_node_array,
int new_num_entries,
ir_node *const *old_node_array,
int old_num_entries, dbg_action action);
/**
* Initializes the debug support.
......
......@@ -69,8 +69,8 @@ void default_dbg_info_merge_pair(ir_node *nw, ir_node *old, dbg_action info)
set_irn_dbg_info(nw, get_irn_dbg_info(old));
}
void default_dbg_info_merge_sets(ir_node **new_nodes, int n_new_nodes,
ir_node **old_nodes, int n_old_nodes,
void default_dbg_info_merge_sets(ir_node *const *new_nodes, int n_new_nodes,
ir_node *const *old_nodes, int n_old_nodes,
dbg_action info)
{
(void) info;
......
......@@ -34,15 +34,15 @@ void default_dbg_info_merge_pair(ir_node *nw, ir_node *old, dbg_action info);
* copies the debug info from the old node to all new ones (if they do not have
* one), else does nothing.
*
* @param new_nodes An array of new Firm nodes.
* @param n_new_nodes The length of the new_nodes array.
* @param old_nodes An array of old (replaced) Firm nodes.
* @param n_old_nodes The length of the old_nodes array.
* @param info The action that cause old node to be replaced by new one.
* @param new_nodes An array of new Firm nodes.
* @param n_new_nodes The length of the new_nodes array.
* @param old_nodes An array of old (replaced) Firm nodes.
* @param n_old_nodes The length of the old_nodes array.
* @param info The action that cause old node to be replaced by new one.
*/
void default_dbg_info_merge_sets(ir_node **new_nodes, int n_new_nodes,
ir_node **old_nodes, int n_old_nodes,
dbg_action info);
void default_dbg_info_merge_sets(ir_node *const *new_nodes, int n_new_nodes,
ir_node *const *old_nodes, int n_old_nodes,
dbg_action info);
/**
* The current merge_pair_func(), access only from inside firm.
......
......@@ -110,8 +110,10 @@ struct hook_entry {
void (*_hook_irg_block_walk)(void *context, ir_graph *irg, ir_node *node, generic_func *pre, generic_func *post);
/** This hook is called, when debug info must be merged. */
void (*_hook_merge_nodes)(void *context, ir_node **new_node_array, int new_num_entries,
ir_node **old_node_array, int old_num_entries, hook_opt_kind opt);
void (*_hook_merge_nodes)(void *context, ir_node *const *new_node_array,
int new_num_entries,
ir_node *const *old_node_array,
int old_num_entries, hook_opt_kind opt);
/** This hook is called, when reassociation is started/stopped. */
void (*_hook_reassociate)(void *context, int start);
......
......@@ -1614,8 +1614,8 @@ static void removed_due_opt(ir_node *n, hmap_opt_entry_t *hmap, hook_opt_kind ki
*/
static void stat_merge_nodes(
void *ctx,
ir_node **new_node_array, int new_num_entries,
ir_node **old_node_array, int old_num_entries,
ir_node *const *new_node_array, int new_num_entries,
ir_node *const *old_node_array, int old_num_entries,
hook_opt_kind opt)
{
(void) ctx;
......
Markdown is supported
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