[COMMITTED] Add gimple_ranger::debug.
Commit Message
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.
---
gcc/gimple-range.cc | 6 ++++++
gcc/gimple-range.h | 1 +
2 files changed, 7 insertions(+)
@@ -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. */
@@ -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: