Conver IR structures to use exec_list instead of simple_node

This commit is contained in:
Ian Romanick
2010-03-08 23:44:00 -08:00
parent 7e4ce71923
commit 0044e7edce
6 changed files with 48 additions and 49 deletions
+1 -2
View File
@@ -681,7 +681,7 @@ main(int argc, char **argv)
char *shader;
size_t shader_len;
struct simple_node *ptr;
struct simple_node instructions;
exec_list instructions;
(void) argc;
shader = load_text_file(argv[1], & shader_len);
@@ -698,7 +698,6 @@ main(int argc, char **argv)
((ast_node *)ptr)->print();
}
make_empty_list(& instructions);
foreach (ptr, & state.translation_unit) {
((ast_node *)ptr)->hir(&instructions, &state);
}