summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/driver/amgc_driver_ctx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/amgc_driver_ctx.c b/src/driver/amgc_driver_ctx.c
index e5b218e..26f48d7 100644
--- a/src/driver/amgc_driver_ctx.c
+++ b/src/driver/amgc_driver_ctx.c
@@ -135,9 +135,9 @@ static int amgc_init_cparser(void)
init_preprocessor();
init_parser();
init_ast();
- init_gen_firm();
+ init_firm_opt();
+ init_firm_target();
- target_set_defaults();
target_setup();
return 0;
@@ -274,7 +274,7 @@ int amgc_create_driver_ctx(
static void amgc_exit_cparser(void)
{
- exit_gen_firm();
+ exit_firm_opt();
exit_ast2firm();
exit_ast();
exit_parser();