nir/print: Factor variable name lookup into a helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 18 Dec 2015 22:39:02 +0000 (14:39 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Dec 2015 21:49:56 +0000 (13:49 -0800)
commit413a9d351746a0e3ecb274a8f39dcefec7010edd
tree1ca173154a98964edd85e869351a58f9bc01598c
parent220ac9337b24c7099ac3534ba14c61592e1266ae
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.
src/glsl/nir/nir_print.c