ir_constant_expression: Convert from a visitor to a virtual function.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 15 Jul 2010 17:09:09 +0000 (10:09 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 21 Jul 2010 00:10:05 +0000 (17:10 -0700)
commitfb2ffd2846b48cb50128fb74df56f2ee63179832
tree5457e6bbaaf1a0472f09108ebae6c09d5880fc1d
parente340854115f2562109c91fa908ffe6628432f989
ir_constant_expression: Convert from a visitor to a virtual function.

The constant_expression_wrapper was already the only external API, and
much of the internal code used it anyway.  Also, it wouldn't ever visit
non-rvalue ir_instructions, so using a visitor seemed a bit unnecessary.

This uses "ir_foo *ir = this;" lines to avoid code churn.  These should
be removed.
src/glsl/ir.h
src/glsl/ir_constant_expression.cpp