summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-02-17 06:41:54 +0100
committerMatthias Braun <matze@braunis.de>2017-02-17 06:42:47 +0100
commit34e4725c723e33cc0fa0bf99ba6c725b6d4c585f (patch)
treea76f4ef8d6f04820e80d3d65caec02ea2605ce3a /src
parent90bf15b1f015560fd4f07a71c40560c6237c2a9e (diff)
Rename init_gen_firm -> init_firm_opt
Diffstat (limited to 'src')
-rw-r--r--src/firm/firm_opt.c4
-rw-r--r--src/firm/firm_opt.h8
-rw-r--r--src/main.c4
3 files changed, 8 insertions, 8 deletions
diff --git a/src/firm/firm_opt.c b/src/firm/firm_opt.c
index f5a5ee9..c897423 100644
--- a/src/firm/firm_opt.c
+++ b/src/firm/firm_opt.c
@@ -691,7 +691,7 @@ void set_be_option(char const *const arg)
panic("setting firm backend option '%s' failed (maybe an outdated version of firm is used)", arg);
}
-void init_gen_firm(void)
+void init_firm_opt(void)
{
ir_init();
enable_safe_defaults();
@@ -773,7 +773,7 @@ void generate_code(FILE *out, const char *input_filename)
timer_stop(t_backend);
}
-void exit_gen_firm(void)
+void exit_firm_opt(void)
{
ir_finish();
}
diff --git a/src/firm/firm_opt.h b/src/firm/firm_opt.h
index af3073e..4303124 100644
--- a/src/firm/firm_opt.h
+++ b/src/firm/firm_opt.h
@@ -109,11 +109,11 @@ typedef enum optimization_level_t {
extern ir_entity *rts_entities[rts_max];
-/** Initialize for the Firm-generating back end. */
-void init_gen_firm(void);
+/** Initializes the firm optimization manager. */
+void init_firm_opt(void);
-/** free resources hold by firm-generating back end */
-void exit_gen_firm(void);
+/** Frees resources used by the firm optimization manager. */
+void exit_firm_opt(void);
/**
* Transform, optimize and generate code
diff --git a/src/main.c b/src/main.c
index 711efa8..f06c178 100644
--- a/src/main.c
+++ b/src/main.c
@@ -310,7 +310,7 @@ int main(int argc, char **argv)
init_driver();
init_default_driver();
init_preprocessor();
- init_gen_firm(); /* initialize early because we need to parse options */
+ init_firm_opt(); /* initialize early because we need to parse options */
init_ast();
init_parser();
@@ -364,7 +364,7 @@ int main(int argc, char **argv)
assert(state.action != NULL);
int ret = state.action(argv[0]);
- exit_gen_firm();
+ exit_firm_opt();
exit_ast2firm();
exit_parser();
exit_ast();