Convert everything from the talloc API to the ralloc API.

This commit is contained in:
Kenneth Graunke
2011-01-21 14:32:31 -08:00
parent dc55254f5b
commit d3073f58c1
67 changed files with 590 additions and 604 deletions

View File

@@ -78,13 +78,13 @@ public:
ir_constant_propagation_visitor()
{
progress = false;
mem_ctx = talloc_new(0);
mem_ctx = ralloc_context(0);
this->acp = new(mem_ctx) exec_list;
this->kills = new(mem_ctx) exec_list;
}
~ir_constant_propagation_visitor()
{
talloc_free(mem_ctx);
ralloc_free(mem_ctx);
}
virtual ir_visitor_status visit_enter(class ir_loop *);
@@ -195,7 +195,7 @@ ir_constant_propagation_visitor::handle_rvalue(ir_rvalue **rvalue)
}
}
*rvalue = new(talloc_parent(deref)) ir_constant(type, &data);
*rvalue = new(ralloc_parent(deref)) ir_constant(type, &data);
this->progress = true;
}