nir/print: Factor variable name lookup into a helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 26 Dec 2015 18:26:29 +0000 (10:26 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 12 Mar 2016 23:48:36 +0000 (15:48 -0800)
commit13969565f91a65c490f8362363b73b207df5c7e0
treede54a5ef227cf9f77b0d8b02baa8134fa50e72bb
parente4bebe8a0255dcd8c9910f2cf89894313286df4d
nir/print: Factor variable name lookup into a helper

Otherwise, we have a problem when we go to print functions with arguments
because their names get added to the hash table during declaration which
happens after we print the prototype.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/compiler/nir/nir_print.c