diff options
author | singhai <singhai@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-24 17:58:14 +0000 |
---|---|---|
committer | singhai <singhai@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-24 17:58:14 +0000 |
commit | 6d8fb6cffe21050fb1a1a66eb990913e3555d27e (patch) | |
tree | 02a5de43f1e1e7c9de68e336f7b7bb4d2593dbf3 /gcc/dumpfile.h | |
parent | d7d9810428531cf359d949dad44cd94a2fbacbb3 (diff) | |
download | gcc-6d8fb6cffe21050fb1a1a66eb990913e3555d27e.tar.gz |
2012-10-24 Sharad Singhai <singhai@google.com>
* dumpfile.c (dump_enabled_p): Make it inline and move the definition
to dumpfile.h.
(dump_kind_p): Deleted. Functionality replaced by dump_enabled_p.
Make alt_dump_file extern.
* dumpfile.h (dump_enabled_p): Move inline definition here.
(dump_kind_p): Delete declaration.
Add extern declaration of alt_dump_file.
* toplev.c: Move dump_file and dump_file_name to dumpfile.c.
* tree-vect-loop-manip.c: Replace all uses of dump_kind_p with
dump_enabled_p.
* tree-vectorizer.c: Likewise.
* tree-vect-loop.c: Likewise.
* tree-vect-data-refs.c: Likewise.
* tree-vect-patterns.c: Likewise.
* tree-vect-stmts.c: Likewise.
* tree-vect-slp.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192773 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dumpfile.h')
-rw-r--r-- | gcc/dumpfile.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h index 24374bfd96b..b2efc804c09 100644 --- a/gcc/dumpfile.h +++ b/gcc/dumpfile.h @@ -108,7 +108,6 @@ struct dump_file_info int num; /* dump file number */ }; - /* In dumpfile.c */ extern char *get_dump_file_name (int); extern int dump_initialized_p (int); @@ -120,8 +119,6 @@ extern void dump_node (const_tree, int, FILE *); extern int dump_switch_p (const char *); extern int opt_info_switch_p (const char *); extern const char *dump_flag_name (int); -extern bool dump_kind_p (int); -extern inline bool dump_enabled_p (void); extern void dump_printf (int, const char *, ...) ATTRIBUTE_PRINTF_2; extern void dump_printf_loc (int, source_location, const char *, ...) ATTRIBUTE_PRINTF_3; @@ -142,10 +139,19 @@ extern void dump_bb (FILE *, basic_block, int, int); /* Global variables used to communicate with passes. */ extern FILE *dump_file; +extern FILE *alt_dump_file; extern int dump_flags; extern const char *dump_file_name; /* Return the dump_file_info for the given phase. */ extern struct dump_file_info *get_dump_file_info (int); +/* Return true if any of the dumps are enabled, false otherwise. */ + +static inline bool +dump_enabled_p (void) +{ + return (dump_file || alt_dump_file); +} + #endif /* GCC_DUMPFILE_H */ |