Commit 13507bd8 by Mark Mitchell Committed by Mark Mitchell

c-dump.c (dequeue_and_dump): Dump function bodies.

	* c-dump.c (dequeue_and_dump): Dump function bodies.

	* dump.c (cp_dump_tree): Don't dump function bodies here.

From-SVN: r37359
parent 0a7394bc
2000-11-09 Mark Mitchell <mark@codesourcery.com> 2000-11-09 Mark Mitchell <mark@codesourcery.com>
* c-dump.c (dequeue_and_dump): Dump function bodies.
* Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o. * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
(c-dump.o): New target. (c-dump.o): New target.
* c-common.h (flag_dump_translation_unit): New variable. * c-common.h (flag_dump_translation_unit): New variable.
......
...@@ -504,6 +504,8 @@ dequeue_and_dump (di) ...@@ -504,6 +504,8 @@ dequeue_and_dump (di)
dump_string (di, "extern"); dump_string (di, "extern");
else else
dump_string (di, "static"); dump_string (di, "static");
if (DECL_LANG_SPECIFIC (t))
dump_child ("body", DECL_SAVED_TREE (t));
break; break;
case ASM_STMT: case ASM_STMT:
......
2000-11-09 Mark Mitchell <mark@codesourcery.com> 2000-11-09 Mark Mitchell <mark@codesourcery.com>
* dump.c (cp_dump_tree): Don't dump function bodies here.
* Make-lang.in (CXX_C_OBJS): Add c-dump.o. * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
(dump.o): Update dependency list. (dump.o): Update dependency list.
* cp-tree.h (DECL_MAYBE_TEMPLATE): Remove. * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
......
...@@ -107,8 +107,6 @@ cp_dump_tree (di, t) ...@@ -107,8 +107,6 @@ cp_dump_tree (di, t)
} }
if (DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION (t)) if (DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION (t))
dump_string (di, "pseudo tmpl"); dump_string (di, "pseudo tmpl");
dump_child ("body", DECL_SAVED_TREE (t));
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment