summaryrefslogtreecommitdiff
path: root/ast_function.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-19 11:57:24 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-19 11:57:24 -0700
commit8bde4cec6b189564b1f2d58514bd7e7a4b40f714 (patch)
tree6c4bd932f35b52cc8948255e4100b43478833483 /ast_function.cpp
parent82de85e264383553dc3c3f827c3b3259355b1006 (diff)
Use glsl_symbol_table instead of using _mesa_symbol_table directly
Diffstat (limited to 'ast_function.cpp')
-rw-r--r--ast_function.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/ast_function.cpp b/ast_function.cpp
index 5cf271e2ed..a120eb8dd6 100644
--- a/ast_function.cpp
+++ b/ast_function.cpp
@@ -22,7 +22,7 @@
*/
#include <cstdio>
-#include "symbol_table.h"
+#include "glsl_symbol_table.h"
#include "ast.h"
#include "glsl_types.h"
#include "ir.h"
@@ -32,8 +32,7 @@ match_function_by_name(exec_list *instructions, const char *name,
YYLTYPE *loc, simple_node *parameters,
struct _mesa_glsl_parse_state *state)
{
- ir_function *f = (ir_function *)
- _mesa_symbol_table_find_symbol(state->symbols, 0, name);
+ ir_function *f = state->symbols->get_function(name);
if (f == NULL) {
_mesa_glsl_error(loc, state, "function `%s' undeclared", name);