aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-pretty-print.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2009-07-22 15:44:46 -0400
committerDiego Novillo <dnovillo@gcc.gnu.org>2009-07-22 15:44:46 -0400
commitcae63f886fb819cd96eafb32964949bc8d6e9a4f (patch)
treeb4c333291033fc15288ea4403ffdc6306efe3cbc /gcc/gimple-pretty-print.c
parent5af2eacecc039b5eb83469f500fe63de71aed74f (diff)
downloadgcc-cae63f886fb819cd96eafb32964949bc8d6e9a4f.zip
gcc-cae63f886fb819cd96eafb32964949bc8d6e9a4f.tar.gz
gcc-cae63f886fb819cd96eafb32964949bc8d6e9a4f.tar.bz2
tree-pass.h (TDF_EH): Define.
* tree-pass.h (TDF_EH): Define. * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS contains TDF_EH, print the EH region number holding GS. * tree-dump.c (dump_options): Add "eh". * doc/invoke.texi: Document it. From-SVN: r149958
Diffstat (limited to 'gcc/gimple-pretty-print.c')
-rw-r--r--gcc/gimple-pretty-print.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c
index c6f0c65..1deb9c8 100644
--- a/gcc/gimple-pretty-print.c
+++ b/gcc/gimple-pretty-print.c
@@ -1384,6 +1384,13 @@ dump_gimple_stmt (pretty_printer *buffer, gimple gs, int spc, int flags)
pp_string (buffer, "] ");
}
+ if (flags & TDF_EH)
+ {
+ int eh_region = lookup_stmt_eh_region_fn (cfun, gs);
+ if (eh_region >= 0)
+ pp_printf (buffer, "[EH #%d] ", eh_region);
+ }
+
if ((flags & (TDF_VOPS|TDF_MEMSYMS))
&& gimple_has_mem_ops (gs))
dump_gimple_mem_ops (buffer, gs, spc, flags);