From: Ian Romanick Date: Tue, 13 Jul 2010 01:35:20 +0000 (-0700) Subject: ir_function: Make matching_signature not return const X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11fc7beb2fa82179cfd9202449e1365b28f868a9;p=mesa.git ir_function: Make matching_signature not return const The linker needs to use this function to get specific function signatures, but it also needs to modify the returned signature. Since this method isn't itself const (i.e., const this pointer), there is no value in making a const and non-const version. --- diff --git a/src/glsl/ir.h b/src/glsl/ir.h index 25bf6c6d151..053b6fecd1d 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -379,7 +379,7 @@ public: * Find a signature that matches a set of actual parameters, taking implicit * conversions into account. */ - const ir_function_signature *matching_signature(exec_list *actual_param); + ir_function_signature *matching_signature(exec_list *actual_param); /** * Find a signature that exactly matches a set of actual parameters without diff --git a/src/glsl/ir_function.cpp b/src/glsl/ir_function.cpp index 5db93f67fb8..fcdb83be561 100644 --- a/src/glsl/ir_function.cpp +++ b/src/glsl/ir_function.cpp @@ -155,7 +155,7 @@ parameter_lists_match(exec_list *list_a, exec_list *list_b) } -const ir_function_signature * +ir_function_signature * ir_function::matching_signature(exec_list *actual_parameters) { ir_function_signature *match = NULL;