[COMMITTED] Implement irange::debug()
Commit Message
Tested on x86-64 Linux.
gcc/ChangeLog:
* value-range.cc (irange::debug): New.
* value-range.h (irange::debug): New.
---
gcc/value-range.cc | 7 +++++++
gcc/value-range.h | 1 +
2 files changed, 8 insertions(+)
@@ -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)
{
@@ -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