summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJonas Haag <jonas@lophus.org>2015-12-25 23:02:33 +0100
committerPhilipp Serrer <philipp@serrer.de>2018-01-18 17:59:02 +0100
commit78974f9cb8830ef2fb64262de327e8160c482881 (patch)
treedd0f1895e3176c1bc63a5715ea7272aee74fb9cd
parentc32169b19b54adb3ec7cfcc6792f0bf98cfc3b1b (diff)
amd64 emitter: Cleanup
-rw-r--r--ir/be/amd64/amd64_emitter.c4
-rw-r--r--ir/be/beemithlp.c2
-rw-r--r--ir/be/beemithlp.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/ir/be/amd64/amd64_emitter.c b/ir/be/amd64/amd64_emitter.c
index bc082a5..0be7e20 100644
--- a/ir/be/amd64/amd64_emitter.c
+++ b/ir/be/amd64/amd64_emitter.c
@@ -865,12 +865,12 @@ static void amd64_gen_block(ir_node *block)
void amd64_emit_function(ir_graph *irg)
{
- ir_entity *entity = get_irg_entity(irg);
+ const ir_entity *const entity = get_irg_entity(irg);
/* register all emitter functions */
amd64_register_emitters();
- ir_node **blk_sched = be_create_block_schedule(irg);
+ ir_node *const *const blk_sched = be_create_block_schedule(irg);
be_gas_emit_function_prolog(entity, 4, NULL);
diff --git a/ir/be/beemithlp.c b/ir/be/beemithlp.c
index a24ce71..be4532a 100644
--- a/ir/be/beemithlp.c
+++ b/ir/be/beemithlp.c
@@ -64,7 +64,7 @@ void be_emit_pad_comment(void)
be_emit_string_len(" ", 34 - col);
}
-void be_emit_init_cf_links(ir_node **const block_schedule)
+void be_emit_init_cf_links(ir_node *const *const block_schedule)
{
ir_node *prev = NULL;
for (size_t i = 0, n = ARR_LEN(block_schedule); i < n; ++i) {
diff --git a/ir/be/beemithlp.h b/ir/be/beemithlp.h
index 3c89d41..604c0ea 100644
--- a/ir/be/beemithlp.h
+++ b/ir/be/beemithlp.h
@@ -49,7 +49,7 @@ void be_emit_node(ir_node const *node);
* This function expects that you require the IR_RESOURCE_IRN_LINK prior
* to using it.
*/
-void be_emit_init_cf_links(ir_node **block_schedule);
+void be_emit_init_cf_links(ir_node *const *const block_schedule);
/**
* Returns the target block for a control flow node.