From a83c8362d1a7b0432389323368da0ab2b8ac8737 Mon Sep 17 00:00:00 2001 From: dmalcolm Date: Tue, 19 Aug 2014 15:18:42 +0000 Subject: Convert DF_REF_INSN to a function for now gcc/ 2014-08-19 David Malcolm * df-core.c (DF_REF_INSN): New, using a checked cast for now. * df.h (DF_REF_INSN): Convert from a macro to a function, so that we can return an rtx_insn *. / 2014-08-19 David Malcolm * rtx-classes-status.txt (TODO): Add DF_REF_INSN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214160 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/df-core.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/df-core.c') diff --git a/gcc/df-core.c b/gcc/df-core.c index ae0d2330133..5d32fa3e795 100644 --- a/gcc/df-core.c +++ b/gcc/df-core.c @@ -2502,3 +2502,9 @@ debug_df_chain (struct df_link *link) df_chain_dump (link, stderr); fputc ('\n', stderr); } + +rtx_insn *DF_REF_INSN (df_ref ref) +{ + rtx insn = ref->base.insn_info->insn; + return safe_as_a (insn); +} -- cgit v1.2.1