diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-19 15:18:42 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-19 15:18:42 +0000 |
commit | a83c8362d1a7b0432389323368da0ab2b8ac8737 (patch) | |
tree | 4abcc393c1039989e9f81dd63bb808c0c7a5d5e6 /gcc/df-core.c | |
parent | 1b08cfdd09c238742dc9f9447d1956fbde5ef3dd (diff) | |
download | gcc-a83c8362d1a7b0432389323368da0ab2b8ac8737.tar.gz |
Convert DF_REF_INSN to a function for now
gcc/
2014-08-19 David Malcolm <dmalcolm@redhat.com>
* 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 <dmalcolm@redhat.com>
* 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
Diffstat (limited to 'gcc/df-core.c')
-rw-r--r-- | gcc/df-core.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <rtx_insn *> (insn); +} |