aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ast.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-10-07 19:17:15 +0200
committerMarek Olšák <[email protected]>2016-10-31 11:53:38 +0100
commita4a93103fb8f5c21c4cd17e89f07badfab14c0ab (patch)
tree872591f19289352b83b2b7f8aef1fc0cebb00294 /src/compiler/glsl/ast.h
parent2296bb09675e2031d75e11a96bf1ab0d0cc4bd38 (diff)
glsl: use the linear allocator for ast_node and derived classes
Tested-by: Edmondo Tommasina <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ast.h')
-rw-r--r--src/compiler/glsl/ast.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/ast.h b/src/compiler/glsl/ast.h
index 063a9b43af0..55f9a6c2e5a 100644
--- a/src/compiler/glsl/ast.h
+++ b/src/compiler/glsl/ast.h
@@ -49,7 +49,7 @@ struct YYLTYPE;
*/
class ast_node {
public:
- DECLARE_RZALLOC_CXX_OPERATORS(ast_node);
+ DECLARE_LINEAR_ZALLOC_CXX_OPERATORS(ast_node);
/**
* Print an AST node in something approximating the original GLSL code
@@ -775,7 +775,7 @@ class ast_declarator_list;
class ast_struct_specifier : public ast_node {
public:
- ast_struct_specifier(const char *identifier,
+ ast_struct_specifier(void *lin_ctx, const char *identifier,
ast_declarator_list *declarator_list);
virtual void print(void) const;