diff options
author | Christoph Mallon <christoph.mallon@gmx.de> | 2016-10-31 09:52:21 +0100 |
---|---|---|
committer | Christoph Mallon <christoph.mallon@gmx.de> | 2016-10-31 12:30:16 +0100 |
commit | b8d2203a0d558e2f4ac72ddb04dab215da6b344a (patch) | |
tree | 317a239c30607935b87aa7cb1ec495b07b419f1e /ir/be/beemithlp.c | |
parent | 87986ce09e83936ccca73c4eba29cc6354a471e2 (diff) |
be: Factor out the common code to emit jump label names.
Diffstat (limited to 'ir/be/beemithlp.c')
-rw-r--r-- | ir/be/beemithlp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ir/be/beemithlp.c b/ir/be/beemithlp.c index 658f533..8fb8838 100644 --- a/ir/be/beemithlp.c +++ b/ir/be/beemithlp.c @@ -13,6 +13,7 @@ #include "bedwarf.h" #include "beemitter.h" #include "be_t.h" +#include "begnuas.h" #include "benode.h" #include "dbginfo.h" #include "debug.h" @@ -85,3 +86,9 @@ be_cond_branch_projs_t be_get_cond_branch_projs(ir_node const *const node) assert(projs.f && projs.t); return projs; } + +void be_emit_cfop_target(ir_node const *const jmp) +{ + ir_node *const target = be_emit_get_cfop_target(jmp); + be_gas_emit_block_name(target); +} |