src/compiler: use new hash table and set creation helpers
Replace calls to create hash tables and sets that use _mesa_hash_pointer/_mesa_key_pointer_equal with the helpers _mesa_pointer_hash_table_create() and _mesa_pointer_set_create(). Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
@@ -90,8 +90,7 @@ ir_print_visitor::ir_print_visitor(FILE *f)
|
||||
: f(f)
|
||||
{
|
||||
indentation = 0;
|
||||
printable_names =
|
||||
_mesa_hash_table_create(NULL, _mesa_hash_pointer, _mesa_key_pointer_equal);
|
||||
printable_names = _mesa_pointer_hash_table_create(NULL);
|
||||
symbols = _mesa_symbol_table_ctor();
|
||||
mem_ctx = ralloc_context(NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user