Add ast_function::hir

ast_function::hir consists of bits pulled out of
ast_function_definition::hir.  In fact, the later uses the former to
do a lot of its processing.  Several class private data fields were
added to ast_function to facilitate communicate between the two.

This causes the following tests to pass:

    glslparsertest/shaders/CorrectModule.frag

This causes the following tests to fail.  These shaders were
previously failing to compile, but they were all failing for the wrong
reasons.

    glslparsertest/shaders/function9.frag
    glslparsertest/shaders/function10.frag
This commit is contained in:
Ian Romanick
2010-03-31 18:23:21 -07:00
parent acce380a3f
commit 92318a9479
3 changed files with 68 additions and 24 deletions
+1
View File
@@ -327,6 +327,7 @@ ast_function::print(void) const
ast_function::ast_function(void)
: is_definition(false), signature(NULL)
{
make_empty_list(& parameters);
}