diff options
author | Sharad Singhai <singhai@google.com> | 2012-10-24 17:58:14 +0000 |
---|---|---|
committer | Sharad Singhai <singhai@gcc.gnu.org> | 2012-10-24 17:58:14 +0000 |
commit | 73fbfcad22ae37dfd57a544aa0f5339b73bac439 (patch) | |
tree | 02a5de43f1e1e7c9de68e336f7b7bb4d2593dbf3 /gcc/dumpfile.h | |
parent | c1a4d0b580e3c394d1ff9790fa581590aa7e953f (diff) | |
download | gcc-73fbfcad22ae37dfd57a544aa0f5339b73bac439.zip gcc-73fbfcad22ae37dfd57a544aa0f5339b73bac439.tar.gz gcc-73fbfcad22ae37dfd57a544aa0f5339b73bac439.tar.bz2 |
dumpfile.c (dump_enabled_p): Make it inline and move the definition to dumpfile.h.
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.
From-SVN: r192773
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 24374bf..b2efc80 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 */ |