Avoid using add_object when we have more specific routines available.

2017-10-23  Richard Sandiford  <richard.sandif...@linaro.org>
            Alan Hayward  <alan.hayw...@arm.com>
            David Sherwood  <david.sherw...@arm.com>

gcc/
        * rtlhash.c (add_rtx): Use add_hwi for 'w' and add_int for 'i'.

Index: gcc/rtlhash.c
===================================================================
--- gcc/rtlhash.c       2017-02-23 19:54:03.000000000 +0000
+++ gcc/rtlhash.c       2017-10-23 11:47:20.120201389 +0100
@@ -77,11 +77,11 @@ add_rtx (const_rtx x, hash &hstate)
     switch (fmt[i])
       {
       case 'w':
-       hstate.add_object (XWINT (x, i));
+       hstate.add_hwi (XWINT (x, i));
        break;
       case 'n':
       case 'i':
-       hstate.add_object (XINT (x, i));
+       hstate.add_int (XINT (x, i));
        break;
       case 'V':
       case 'E':

Reply via email to