From: Aldy Hernandez Date: Wed, 29 Sep 2021 18:50:20 +0000 (+0200) Subject: Add gimple_ranger::debug. X-Git-Tag: basepoints/gcc-13~4338 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=257fd0333fe9fe5b0b4f9fddde50a09afa82b2ef;p=thirdparty%2Fgcc.git Add gimple_ranger::debug. I'm trying to add one debug() for each dump() to the dumping aids. Tested on x86-64 Linux. gcc/ChangeLog: * gimple-range.cc (gimple_ranger::debug): New. * gimple-range.h (class gimple_ranger): Add debug. --- diff --git a/gcc/gimple-range.cc b/gcc/gimple-range.cc index d4108db18557..6eb3f71bbd37 100644 --- a/gcc/gimple-range.cc +++ b/gcc/gimple-range.cc @@ -412,6 +412,12 @@ gimple_ranger::dump (FILE *f) m_cache.dump (f); } +void +gimple_ranger::debug () +{ + dump (stderr); +} + /* Create a new ranger instance and associate it with function FUN. Each call must be paired with a call to disable_ranger to release resources. */ diff --git a/gcc/gimple-range.h b/gcc/gimple-range.h index 191a075a1b01..0713af40fcde 100644 --- a/gcc/gimple-range.h +++ b/gcc/gimple-range.h @@ -55,6 +55,7 @@ public: void export_global_ranges (); inline gori_compute &gori () { return m_cache.m_gori; } virtual void dump (FILE *f) OVERRIDE; + void debug (); void dump_bb (FILE *f, basic_block bb); auto_edge_flag non_executable_edge_flag; protected: