aboutsummaryrefslogtreecommitdiff
path: root/gcc/dumpfile.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2018-08-02 08:33:47 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2018-08-02 08:33:47 +0000
commit12c27c758ce62ff43836c5bee1538f9dfccf3d85 (patch)
treec474f4850e2c3b08ed864efaefbedefa60546bf7 /gcc/dumpfile.c
parentfbdd606586e2f5d83a00da142b696189b3ec1a5e (diff)
downloadgcc-12c27c758ce62ff43836c5bee1538f9dfccf3d85.zip
gcc-12c27c758ce62ff43836c5bee1538f9dfccf3d85.tar.gz
gcc-12c27c758ce62ff43836c5bee1538f9dfccf3d85.tar.bz2
dumpfile.c/h: add "const" to dump location ctors
gcc/ChangeLog: * dumpfile.c (dump_user_location_t::dump_user_location_t): Add "const" to the "gimple *" and "rtx_insn *" parameters. * dumpfile.h (dump_user_location_t::dump_user_location_t): Likewise. (dump_location_t::dump_location_t): Likewise. From-SVN: r263244
Diffstat (limited to 'gcc/dumpfile.c')
-rw-r--r--gcc/dumpfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c
index 10e9cab..76a2ee8 100644
--- a/gcc/dumpfile.c
+++ b/gcc/dumpfile.c
@@ -397,7 +397,7 @@ dump_open_alternate_stream (struct dump_file_info *dfi)
/* Construct a dump_user_location_t from STMT (using its location and
hotness). */
-dump_user_location_t::dump_user_location_t (gimple *stmt)
+dump_user_location_t::dump_user_location_t (const gimple *stmt)
: m_count (), m_loc (UNKNOWN_LOCATION)
{
if (stmt)
@@ -411,7 +411,7 @@ dump_user_location_t::dump_user_location_t (gimple *stmt)
/* Construct a dump_user_location_t from an RTL instruction (using its
location and hotness). */
-dump_user_location_t::dump_user_location_t (rtx_insn *insn)
+dump_user_location_t::dump_user_location_t (const rtx_insn *insn)
: m_count (), m_loc (UNKNOWN_LOCATION)
{
if (insn)