Commit 8a2e8325 by David Malcolm Committed by David Malcolm

entry_of_function returns an insn

2014-08-19  David Malcolm  <dmalcolm@redhat.com>

	* rtl.h (entry_of_function): Strengthen return type from rtx to
	rtx_insn *.
	* cfgrtl.c (entry_of_function): Likewise.

From-SVN: r214182
parent 27093ee4
2014-08-19 David Malcolm <dmalcolm@redhat.com> 2014-08-19 David Malcolm <dmalcolm@redhat.com>
* rtl.h (entry_of_function): Strengthen return type from rtx to
rtx_insn *.
* cfgrtl.c (entry_of_function): Likewise.
2014-08-19 David Malcolm <dmalcolm@redhat.com>
* emit-rtl.h (get_insns): Strengthen return type from rtx to * emit-rtl.h (get_insns): Strengthen return type from rtx to
rtx_insn *, adding a checked cast for now. rtx_insn *, adding a checked cast for now.
(get_last_insn): Likewise. (get_last_insn): Likewise.
......
...@@ -498,7 +498,7 @@ make_pass_free_cfg (gcc::context *ctxt) ...@@ -498,7 +498,7 @@ make_pass_free_cfg (gcc::context *ctxt)
} }
/* Return RTX to emit after when we want to emit code on the entry of function. */ /* Return RTX to emit after when we want to emit code on the entry of function. */
rtx rtx_insn *
entry_of_function (void) entry_of_function (void)
{ {
return (n_basic_blocks_for_fn (cfun) > NUM_FIXED_BLOCKS ? return (n_basic_blocks_for_fn (cfun) > NUM_FIXED_BLOCKS ?
......
...@@ -3088,7 +3088,7 @@ extern void add_insn_after (rtx, rtx, basic_block); ...@@ -3088,7 +3088,7 @@ extern void add_insn_after (rtx, rtx, basic_block);
extern void remove_insn (rtx); extern void remove_insn (rtx);
extern rtx emit (rtx); extern rtx emit (rtx);
extern void delete_insn (rtx); extern void delete_insn (rtx);
extern rtx entry_of_function (void); extern rtx_insn *entry_of_function (void);
extern void emit_insn_at_entry (rtx); extern void emit_insn_at_entry (rtx);
extern void delete_insn_chain (rtx, rtx, bool); extern void delete_insn_chain (rtx, rtx, bool);
extern rtx unlink_insn_chain (rtx, rtx); extern rtx unlink_insn_chain (rtx, rtx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment