+2018-08-02 David Malcolm <dmalcolm@redhat.com>
+
+ * 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.
+
2018-08-01 Martin Sebor <msebor@redhat.com>
PR tree-optimization/86650
/* 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)
/* 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)
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. */
}
/* 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)),
}
/* 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)),