Implement irange::debug()

Tested on x86-64 Linux.

gcc/ChangeLog:

	* value-range.cc (irange::debug): New.
	* value-range.h (irange::debug): New.
This commit is contained in:
Aldy Hernandez 2021-10-08 15:42:01 +02:00
parent a1fc4075fc
commit 4d9070315a
2 changed files with 8 additions and 0 deletions

View File

@ -1999,6 +1999,13 @@ irange::dump (FILE *file) const
}
}
void
irange::debug () const
{
dump (stderr);
fprintf (stderr, "\n");
}
void
dump_value_range (FILE *file, const irange *vr)
{

View File

@ -84,6 +84,7 @@ public:
// Misc methods.
bool fits_p (const irange &r) { return m_max_ranges >= r.num_pairs (); }
void dump (FILE * = stderr) const;
void debug () const;
// Deprecated legacy public methods.
enum value_range_kind kind () const; // DEPRECATED