]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Implement irange::debug()
authorAldy Hernandez <aldyh@redhat.com>
Fri, 8 Oct 2021 13:42:01 +0000 (15:42 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 8 Oct 2021 14:36:00 +0000 (16:36 +0200)
Tested on x86-64 Linux.

gcc/ChangeLog:

* value-range.cc (irange::debug): New.
* value-range.h (irange::debug): New.

gcc/value-range.cc
gcc/value-range.h

index 147c4b04c1d2bf50326455a1864ffb5ae3941010..caef249895942b875c45eb11c43df62943178e52 100644 (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)
 {
index ff6c0a6176d6d8db27513147cfe1eaad2f2fa4b9..32200ff890f18b2c3bd657d2a40fe0a02061275e 100644 (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