summaryrefslogtreecommitdiff
path: root/gcc/dumpfile.h
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-09 15:25:11 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-09 15:25:11 +0000
commitf9e004fe19c8ac9642270ba95559a7cdebe72727 (patch)
tree75873bc57a5cbae6acc0aaa790e968676b78c423 /gcc/dumpfile.h
parente04e0c8a63d90ddd877c987d877586a521a67875 (diff)
downloadgcc-f9e004fe19c8ac9642270ba95559a7cdebe72727.tar.gz
PR jit/64166: Add methods to gcc::dump_manager needed by JIT testing
gcc/ChangeLog: PR jit/64166 * dumpfile.c (gcc::dump_manager::get_dump_file_info_by_switch): New function. (gcc::dump_manager::get_dump_file_name): Split out bulk of implementation into a new overloaded variant taking a dump_file_info *. * dumpfile.h (gcc::dump_manager::get_dump_file_info_by_switch): New function. (gcc::dump_manager::get_dump_file_name): New overloaded variant of this function, taking a dump_file_info *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218520 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dumpfile.h')
-rw-r--r--gcc/dumpfile.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h
index d650174c431..93aea67f7c2 100644
--- a/gcc/dumpfile.h
+++ b/gcc/dumpfile.h
@@ -182,11 +182,17 @@ public:
struct dump_file_info *
get_dump_file_info (int phase) const;
+ struct dump_file_info *
+ get_dump_file_info_by_switch (const char *swtch) const;
+
/* Return the name of the dump file for the given phase.
If the dump is not enabled, returns NULL. */
char *
get_dump_file_name (int phase) const;
+ char *
+ get_dump_file_name (struct dump_file_info *dfi) const;
+
int
dump_switch_p (const char *arg);