glsl: use the linear allocator for ast_node and derived classes

Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák
2016-10-07 19:17:15 +02:00
parent 2296bb0967
commit a4a93103fb
6 changed files with 114 additions and 113 deletions

View File

@@ -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;