Remove AstNode linked lists and replace with arrays

This commit is contained in:
Ginger Bill
2016-09-07 21:59:03 +01:00
parent 7ba13a18a3
commit 50aeea1c2e
7 changed files with 620 additions and 632 deletions
+3 -2
View File
@@ -41,7 +41,7 @@ i32 win32_exec_command_line_app(char *fmt, ...) {
}
#if 0
#if 1
#define INIT_TIMER() u64 start_time, end_time = 0, total_time = 0; start_time = gb_utc_time_now()
#define PRINT_TIMER(section) do { \
u64 diff; \
@@ -92,6 +92,7 @@ int main(int argc, char **argv) {
// print_ast(parser.files[0].decls, 0);
#if 1
Checker checker = {};
init_checker(&checker, &parser);
@@ -101,7 +102,7 @@ int main(int argc, char **argv) {
PRINT_TIMER("Semantic Checker");
#endif
#if 1
ssaGen ssa = {};
if (!ssa_gen_init(&ssa, &checker))