diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-12-14 19:29:48 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-12-14 19:29:48 +0000 |
commit | 0482b001d456f04130084df8a841bb7159b3d383 (patch) | |
tree | d2ea519d48685aff6d60a5381ab876c40bc43bc7 /gcc/gimple-pretty-print.c | |
parent | 44eba92d0a0594bda5b53fcb3c8f84f164c653b6 (diff) | |
download | gcc-0482b001d456f04130084df8a841bb7159b3d383.zip gcc-0482b001d456f04130084df8a841bb7159b3d383.tar.gz gcc-0482b001d456f04130084df8a841bb7159b3d383.tar.bz2 |
Dump default defs for arguments, static chain and decl-by-reference
2015-12-14 Tom de Vries <tom@codesourcery.com>
PR other/68882
* gimple-pretty-print.c (dump_ssaname_info_to_file): New function.
* gimple-pretty-print.h (dump_ssaname_info_to_file): Declare.
* tree-cfg.c (dump_default_def): New function.
(dump_function_to_file): Dump default defs for arguments, static chain,
and decl-by-reference.
From-SVN: r231630
Diffstat (limited to 'gcc/gimple-pretty-print.c')
-rw-r--r-- | gcc/gimple-pretty-print.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index f1abf5c..01e9b6b 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -1887,6 +1887,17 @@ dump_ssaname_info (pretty_printer *buffer, tree node, int spc) } } +/* As dump_ssaname_info, but dump to FILE. */ + +void +dump_ssaname_info_to_file (FILE *file, tree node, int spc) +{ + pretty_printer buffer; + pp_needs_newline (&buffer) = true; + buffer.buffer->stream = file; + dump_ssaname_info (&buffer, node, spc); + pp_flush (&buffer); +} /* Dump a PHI node PHI. BUFFER, SPC and FLAGS are as in pp_gimple_stmt_1. The caller is responsible for calling pp_flush on BUFFER to finalize |