summaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index a950d5e970e..7247b0fb4fa 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -49,6 +49,9 @@ along with GCC; see the file COPYING3. If not see
#include "c-family/c-ada-spec.h"
#include "asan.h"
+/* Id for dumping the raw trees. */
+int raw_dump_id;
+
extern cpp_reader *parse_in;
/* This structure contains information about the initializations
@@ -4362,12 +4365,10 @@ static void
dump_tu (void)
{
dump_flags_t flags;
- FILE *stream = dump_begin (TDI_tu, &flags);
-
- if (stream)
+ if (FILE *stream = dump_begin (raw_dump_id, &flags))
{
dump_node (global_namespace, flags & ~TDF_SLIM, stream);
- dump_end (TDI_tu, stream);
+ dump_end (raw_dump_id, stream);
}
}