From 811cf91d977ba4d907d018515ac9ec22a69163b3 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 12 May 2017 14:34:55 -0400 Subject: [PATCH 08/14] FIXME: add get_tree_code_name to dump --- gcc/ast.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/ast.c b/gcc/ast.c index 4d8014d..2519c6a 100644 --- a/gcc/ast.c +++ b/gcc/ast.c @@ -123,8 +123,10 @@ ast_node::dump (pretty_printer *pp, const char *prefix, if (m_tree) // FIXME: format code: + // FIXME: add get_tree_code_name to both #if 1 - pp_printf (pp, " tree: %p", (void *)m_tree); + pp_printf (pp, " tree: %p %qs", (void *)m_tree, + get_tree_code_name (TREE_CODE (m_tree))); #else // seems to work for C++: pp_printf (pp, " tree: %p %qE", (void *)m_tree, m_tree); -- 1.8.5.3