summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-11-04 15:50:46 -0400
committermidipix <writeonce@midipix.org>2017-11-04 15:50:46 -0400
commitb8fd4d5210fccb7dbbee5cf0157d002dd8038874 (patch)
tree4bcf92ef11099b3f4cd5d944ec42926a6e0e9fb2 /src
parentd319efb9a7abf656a5bd2075196777f7c7c3134a (diff)
downloadapimagic-b8fd4d5210fccb7dbbee5cf0157d002dd8038874.tar.bz2
apimagic-b8fd4d5210fccb7dbbee5cf0157d002dd8038874.tar.xz
driver: adjust code following changes in libcparser's API.
Diffstat (limited to 'src')
-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();