Define m_rtx_reuse_manager only if not GENERATOR_FILE.

gcc/ChangeLog:

	* print-rtl.c (rtx_writer::rtx_writer): Make the compilation
	conditional based on
	* print-rtl.h (class rtx_writer): Likewise.
This commit is contained in:
Martin Liska 2021-11-09 14:42:26 +01:00
parent 088199e5d0
commit 0dc0947d4b
2 changed files with 7 additions and 3 deletions

View File

@ -84,10 +84,12 @@ int flag_dump_unnumbered_links = 0;
/* Constructor for rtx_writer. */
rtx_writer::rtx_writer (FILE *outf, int ind, bool simple, bool compact,
rtx_reuse_manager *reuse_manager)
rtx_reuse_manager *reuse_manager ATTRIBUTE_UNUSED)
: m_outfile (outf), m_sawclose (0), m_indent (ind),
m_in_call_function_usage (false), m_simple (simple), m_compact (compact),
m_rtx_reuse_manager (reuse_manager)
m_in_call_function_usage (false), m_simple (simple), m_compact (compact)
#ifndef GENERATOR_FILE
, m_rtx_reuse_manager (reuse_manager)
#endif
{
}

View File

@ -68,8 +68,10 @@ class rtx_writer
- insn names are prefixed with "c" (e.g. "cinsn", "cnote", etc). */
bool m_compact;
#ifndef GENERATOR_FILE
/* An optional instance of rtx_reuse_manager. */
rtx_reuse_manager *m_rtx_reuse_manager;
#endif
};
#ifdef BUFSIZ