From 9fdded0cc34b4bdb87923707c05b8ceffb2f174c Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Fri, 11 Jan 2019 11:50:53 -0800 Subject: 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 Acked-by: Eric Engestrom --- src/compiler/glsl/standalone.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/compiler/glsl/standalone.cpp') diff --git a/src/compiler/glsl/standalone.cpp b/src/compiler/glsl/standalone.cpp index 96ea18f1303..add4e4ea478 100644 --- a/src/compiler/glsl/standalone.cpp +++ b/src/compiler/glsl/standalone.cpp @@ -49,9 +49,7 @@ class dead_variable_visitor : public ir_hierarchical_visitor { public: dead_variable_visitor() { - variables = _mesa_set_create(NULL, - _mesa_hash_pointer, - _mesa_key_pointer_equal); + variables = _mesa_pointer_set_create(NULL); } virtual ~dead_variable_visitor() -- cgit v1.2.3