gcc/analyzer/ChangeLog:
* supergraph.cc (superedge::dump): Add space before description;
move newline to non-pretty_printer overload.
+2020-03-27 David Malcolm <dmalcolm@redhat.com>
+
+ * supergraph.cc (superedge::dump): Add space before description;
+ move newline to non-pretty_printer overload.
+
2020-03-18 David Malcolm <dmalcolm@redhat.com>
* region-model.cc: Include "stor-layout.h".
superedge::dump (pretty_printer *pp) const
{
pp_printf (pp, "edge: SN: %i -> SN: %i", m_src->m_index, m_dest->m_index);
- dump_label_to_pp (pp, false);
- pp_newline (pp);
+ char *desc = get_description (false);
+ if (strlen (desc) > 0)
+ {
+ pp_space (pp);
+ pp_string (pp, desc);
+ }
+ free (desc);
}
/* Dump this superedge to stderr. */
pp_show_color (&pp) = pp_show_color (global_dc->printer);
pp.buffer->stream = stderr;
dump (&pp);
+ pp_newline (&pp);
pp_flush (&pp);
}