aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2014-06-26 17:54:19 +0000
committerTeresa Johnson <tejohnson@gcc.gnu.org>2014-06-26 17:54:19 +0000
commitf8a36c783d8cc386ad77c2a5ed005273071db157 (patch)
treef6fc6abbeb062d0ab81546f34bca1699b5d94d05 /gcc/cp/class.c
parentf14726bd4b39a60b132f728fa9d2b8102cccf475 (diff)
downloadgcc-f8a36c783d8cc386ad77c2a5ed005273071db157.zip
gcc-f8a36c783d8cc386ad77c2a5ed005273071db157.tar.gz
gcc-f8a36c783d8cc386ad77c2a5ed005273071db157.tar.bz2
c-common.h (get_dump_info): Declare.
2014-06-26 Teresa Johnson <tejohnson@google.com> * c-family/c-common.h (get_dump_info): Declare. * c-family/c-gimplify.c (c_genericize): Use saved dump files. * c-family/c-opts.c (c_common_parse_file): Begin and end dumps once around parsing invocation. (get_dump_info): New function. * cp/class.c (dump_class_hierarchy): Use saved dump files. (dump_vtable): Ditto. (dump_vtt): Ditto. From-SVN: r212041
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 743ad51..d3bc71e 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -8077,12 +8077,11 @@ static void
dump_class_hierarchy (tree t)
{
int flags;
- FILE *stream = dump_begin (TDI_class, &flags);
+ FILE *stream = get_dump_info (TDI_class, &flags);
if (stream)
{
dump_class_hierarchy_1 (stream, flags, t);
- dump_end (TDI_class, stream);
}
}
@@ -8112,7 +8111,7 @@ static void
dump_vtable (tree t, tree binfo, tree vtable)
{
int flags;
- FILE *stream = dump_begin (TDI_class, &flags);
+ FILE *stream = get_dump_info (TDI_class, &flags);
if (!stream)
return;
@@ -8135,15 +8134,13 @@ dump_vtable (tree t, tree binfo, tree vtable)
dump_array (stream, vtable);
fprintf (stream, "\n");
}
-
- dump_end (TDI_class, stream);
}
static void
dump_vtt (tree t, tree vtt)
{
int flags;
- FILE *stream = dump_begin (TDI_class, &flags);
+ FILE *stream = get_dump_info (TDI_class, &flags);
if (!stream)
return;
@@ -8155,8 +8152,6 @@ dump_vtt (tree t, tree vtt)
dump_array (stream, vtt);
fprintf (stream, "\n");
}
-
- dump_end (TDI_class, stream);
}
/* Dump a function or thunk and its thunkees. */