aboutsummaryrefslogtreecommitdiff
path: root/gcc/dumpfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/dumpfile.c')
-rw-r--r--gcc/dumpfile.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c
index 4ac427b..0f36afa 100644
--- a/gcc/dumpfile.c
+++ b/gcc/dumpfile.c
@@ -32,12 +32,18 @@ along with GCC; see the file COPYING3. If not see
static int pflags; /* current dump_flags */
static int alt_flags; /* current opt_info flags */
-static FILE *alt_dump_file = NULL;
static void dump_loc (int, FILE *, source_location);
static int dump_phase_enabled_p (int);
static FILE *dump_open_alternate_stream (struct dump_file_info *);
+/* These are currently used for communicating between passes.
+ However, instead of accessing them directly, the passes can use
+ dump_printf () for dumps. */
+FILE *dump_file = NULL;
+FILE *alt_dump_file = NULL;
+const char *dump_file_name;
+
/* Table of tree dump switches. This must be consistent with the
TREE_DUMP_INDEX enumeration in dumpfile.h. */
static struct dump_file_info dump_files[TDI_end] =
@@ -514,14 +520,6 @@ dump_phase_enabled_p (int phase)
}
}
-/* Return true if any of the dumps are enabled, false otherwise. */
-
-inline bool
-dump_enabled_p (void)
-{
- return (dump_file || alt_dump_file);
-}
-
/* Returns nonzero if tree dump PHASE has been initialized. */
int
@@ -836,16 +834,6 @@ opt_info_switch_p (const char *arg)
return opt_info_enable_all ((TDF_TREE | TDF_RTL | TDF_IPA), flags, filename);
}
-/* Return true if any dumps are enabled for the given MSG_TYPE, false
- otherwise. */
-
-bool
-dump_kind_p (int msg_type)
-{
- return (dump_file && (msg_type & pflags))
- || (alt_dump_file && (msg_type & alt_flags));
-}
-
/* Print basic block on the dump streams. */
void