aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgrtl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cfgrtl.cc')
-rw-r--r--gcc/cfgrtl.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/cfgrtl.cc b/gcc/cfgrtl.cc
index 310028f..1b4f78a 100644
--- a/gcc/cfgrtl.cc
+++ b/gcc/cfgrtl.cc
@@ -538,7 +538,7 @@ emit_insn_at_entry (rtx insn)
The insn chain range is inclusive
(i.e. both BEGIN and END will be updated. */
-static void
+void
update_bb_for_insn_chain (rtx_insn *begin, rtx_insn *end, basic_block bb)
{
rtx_insn *insn;
@@ -1982,8 +1982,7 @@ insert_insn_on_edge (rtx pattern, edge e)
emit_insn (pattern);
- e->insns.r = get_insns ();
- end_sequence ();
+ e->insns.r = end_sequence ();
}
/* Like insert_insn_on_edge, but if there are already queued instructions
@@ -2001,8 +2000,7 @@ prepend_insn_to_edge (rtx pattern, edge e)
emit_insn (pattern);
emit_insn (e->insns.r);
- e->insns.r = get_insns ();
- end_sequence ();
+ e->insns.r = end_sequence ();
}
/* Update the CFG for the instructions queued on edge E. */
@@ -5278,8 +5276,7 @@ rtl_lv_add_condition_to_bb (basic_block first_head ,
jump = get_last_insn ();
JUMP_LABEL (jump) = label;
LABEL_NUSES (label)++;
- seq = get_insns ();
- end_sequence ();
+ seq = end_sequence ();
/* Add the new cond, in the new head. */
emit_insn_after (seq, BB_END (cond_bb));