summaryrefslogtreecommitdiff
path: root/gcc/dumpfile.h
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.h
parentfbdd606586e2f5d83a00da142b696189b3ec1a5e (diff)
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.h')
-rw-r--r--gcc/dumpfile.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h
index 2b174e5ea0f..8de001d95e4 100644
--- a/gcc/dumpfile.h
+++ b/gcc/dumpfile.h
@@ -285,10 +285,10 @@ class dump_user_location_t
dump_user_location_t () : m_count (), m_loc (UNKNOWN_LOCATION) {}
/* Construct from a gimple statement (using its location and hotness). */
- dump_user_location_t (gimple *stmt);
+ dump_user_location_t (const gimple *stmt);
/* Construct from an RTL instruction (using its location and hotness). */
- dump_user_location_t (rtx_insn *insn);
+ dump_user_location_t (const rtx_insn *insn);
/* Construct from a location_t. This one is deprecated (since it doesn't
capture hotness information); it thus needs to be spelled out. */
@@ -363,7 +363,7 @@ class dump_location_t
}
/* Construct from a gimple statement (using its location and hotness). */
- dump_location_t (gimple *stmt,
+ dump_location_t (const gimple *stmt,
const dump_impl_location_t &impl_location
= dump_impl_location_t ())
: m_user_location (dump_user_location_t (stmt)),
@@ -372,7 +372,7 @@ class dump_location_t
}
/* Construct from an RTL instruction (using its location and hotness). */
- dump_location_t (rtx_insn *insn,
+ dump_location_t (const rtx_insn *insn,
const dump_impl_location_t &impl_location
= dump_impl_location_t ())
: m_user_location (dump_user_location_t (insn)),