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

renamed register_additional_node_data() to firm_register_additional_node_data()

[r15043]
parent e4276a26
...@@ -1369,7 +1369,7 @@ void set_Cond_jmp_pred(ir_node *cond, cond_jmp_predicate pred); ...@@ -1369,7 +1369,7 @@ void set_Cond_jmp_pred(ir_node *cond, cond_jmp_predicate pred);
* must be passed to the access macro get_irn_data(), 0 if the * must be passed to the access macro get_irn_data(), 0 if the
* registration failed. * registration failed.
*/ */
unsigned register_additional_node_data(unsigned size); unsigned firm_register_additional_node_data(unsigned size);
/** /**
* Return a pointer to the node attributes. * Return a pointer to the node attributes.
......
...@@ -85,7 +85,7 @@ void be_sched_dump(FILE *f, ir_graph *irg) ...@@ -85,7 +85,7 @@ void be_sched_dump(FILE *f, ir_graph *irg)
/* Init the scheduling stuff. */ /* Init the scheduling stuff. */
void be_init_sched(void) void be_init_sched(void)
{ {
sched_irn_data_offset = register_additional_node_data(sizeof(sched_info_t)); sched_irn_data_offset = firm_register_additional_node_data(sizeof(sched_info_t));
} }
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched); BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched);
......
...@@ -108,7 +108,7 @@ unsigned firm_add_node_size = 0; ...@@ -108,7 +108,7 @@ unsigned firm_add_node_size = 0;
/* register new space for every node */ /* register new space for every node */
unsigned register_additional_node_data(unsigned size) { unsigned firm_register_additional_node_data(unsigned size) {
assert(!forbid_new_data && "Too late to register additional node data"); assert(!forbid_new_data && "Too late to register additional node data");
if (forbid_new_data) if (forbid_new_data)
...@@ -131,8 +131,8 @@ init_irnode(void) { ...@@ -131,8 +131,8 @@ init_irnode(void) {
* If arity is negative, a node with a dynamic array is created. * If arity is negative, a node with a dynamic array is created.
*/ */
ir_node * ir_node *
new_ir_node (dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op, ir_mode *mode, new_ir_node(dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op, ir_mode *mode,
int arity, ir_node **in) int arity, ir_node **in)
{ {
ir_node *res; ir_node *res;
size_t node_size = offsetof(ir_node, attr) + op->attr_size + firm_add_node_size; size_t node_size = offsetof(ir_node, attr) + op->attr_size + firm_add_node_size;
......
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