Convert PATTERN from a macro to a pair of inline functions
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * rtl.h (PATTERN): Convert this macro into a pair of inline functions, for now, requiring const_rtx and rtx. From-SVN: r214585
This commit is contained in:
parent
ac44248e6a
commit
bd59c195f6
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-08-27 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* rtl.h (PATTERN): Convert this macro into a pair of inline
|
||||
functions, for now, requiring const_rtx and rtx.
|
||||
|
||||
2014-08-27 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* target.def (unwind_emit): Strengthen param "insn" from rtx to
|
||||
|
|
10
gcc/rtl.h
10
gcc/rtl.h
|
@ -1207,7 +1207,15 @@ inline rtx& SET_NEXT_INSN (rtx insn)
|
|||
#define BLOCK_FOR_INSN(INSN) XBBDEF (INSN, 2)
|
||||
|
||||
/* The body of an insn. */
|
||||
#define PATTERN(INSN) XEXP (INSN, 3)
|
||||
inline rtx PATTERN (const_rtx insn)
|
||||
{
|
||||
return XEXP (insn, 3);
|
||||
}
|
||||
|
||||
inline rtx& PATTERN (rtx insn)
|
||||
{
|
||||
return XEXP (insn, 3);
|
||||
}
|
||||
|
||||
#define INSN_LOCATION(INSN) XUINT (INSN, 4)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue