summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2018-05-31 14:08:59 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2018-05-31 14:09:14 +0200
commit3ed52021390f193cef8a317f3d1637df7296203d (patch)
tree2e8839bd80487432269120e85da8cefef2511f7c /ir/be/begnuas.h
parente7a96ec68c8fb9637f067f14e47e0b5f90a0386b (diff)
be: Factor out code to decide whether a basic block needs a label.
For this a new flag 'arch_irn_flag_fallthrough' is introduced to mark nodes which are capable of falling through to their successor.
Diffstat (limited to 'ir/be/begnuas.h')
-rw-r--r--ir/be/begnuas.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/ir/be/begnuas.h b/ir/be/begnuas.h
index 27c04fe..d489196 100644
--- a/ir/be/begnuas.h
+++ b/ir/be/begnuas.h
@@ -87,10 +87,11 @@ void be_gas_emit_entity(const ir_entity *entity);
void be_gas_emit_block_name(const ir_node *block);
/**
- * Starts a basic block. Emits an assembler label "blockname:" if needs_label
- * is true, otherwise a comment with the blockname if verboseasm is enabled.
+ * Starts a basic block. Emits an assembler label "blockname:" if any control
+ * flow predecessor does not fall through, otherwise a comment with the
+ * blockname if verboseasm is enabled.
*/
-void be_gas_begin_block(const ir_node *block, bool needs_label);
+void be_gas_begin_block(ir_node const *block);
/**
* emit a string (takes care of escaping special chars)