From: Ian Romanick Date: Mon, 3 Mar 2014 04:31:02 +0000 (+0200) Subject: mesa/program: Constify find_variable_storage X-Git-Tag: upstream/10.3~2878 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bdf65f743f071d8f6aae487092b3cb79da17567;p=platform%2Fupstream%2Fmesa.git mesa/program: Constify find_variable_storage Also clean up an old whitespace blooper. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 9598710..1ba9e43 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -229,7 +229,7 @@ public: int next_temp; - variable_storage *find_variable_storage(ir_variable *var); + variable_storage *find_variable_storage(const ir_variable *var); src_reg get_temp(const glsl_type *type); void reladdr_to_temp(ir_instruction *ir, src_reg *reg, int *num_reladdr); @@ -661,9 +661,8 @@ ir_to_mesa_visitor::get_temp(const glsl_type *type) } variable_storage * -ir_to_mesa_visitor::find_variable_storage(ir_variable *var) +ir_to_mesa_visitor::find_variable_storage(const ir_variable *var) { - variable_storage *entry; foreach_list(node, &this->variables) {