aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-09-05 14:19:35 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-09-05 14:19:35 +0000
commit345b82befbb91d50a57ed875b8d5b9232ffa0736 (patch)
tree799808559635f7ac9d1292343c33da8e98893afb /gcc/rtl.h
parent86bf2d46b6350e9af1d3a2e6ee75c1080d26b1c5 (diff)
downloadgcc-345b82befbb91d50a57ed875b8d5b9232ffa0736.zip
gcc-345b82befbb91d50a57ed875b8d5b9232ffa0736.tar.gz
gcc-345b82befbb91d50a57ed875b8d5b9232ffa0736.tar.bz2
Convert set_block_for_insn from a macro to an inline function
gcc/ChangeLog: 2014-09-05 David Malcolm <dmalcolm@redhat.com> * basic-block.h (set_block_for_insn): Eliminate this macro in favor of... * rtl.h (set_block_for_insn): New inline function, imposing the requirement that the "insn" param is an rtx_insn *. From-SVN: r214963
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index cd2f2e7..b36fc3d 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1353,6 +1353,11 @@ inline basic_block& BLOCK_FOR_INSN (rtx insn)
return XBBDEF (insn, 2);
}
+inline void set_block_for_insn (rtx_insn *insn, basic_block bb)
+{
+ BLOCK_FOR_INSN (insn) = bb;
+}
+
/* The body of an insn. */
inline rtx PATTERN (const_rtx insn)
{