aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2011-06-06 13:24:55 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2011-06-06 13:24:55 +0000
commit6d8402ac13cd591026591be13329c4eda24ce639 (patch)
tree17c8c5596a02cb936bbd251b4cf84ef3d841da0a /gcc/tree-pretty-print.c
parentf75e1f1ee358b9beae2ec796930280fdd47a4eae (diff)
downloadgcc-6d8402ac13cd591026591be13329c4eda24ce639.zip
gcc-6d8402ac13cd591026591be13329c4eda24ce639.tar.gz
gcc-6d8402ac13cd591026591be13329c4eda24ce639.tar.bz2
tree-pretty-print.c (dump_function_header): Add flags.
* tree-pretty-print.c (dump_function_header): Add flags. Don't dump decl_uid with nouid. * tree-pretty-print.h (dump_function_header): Adjust. * final.c (rest_of_clean_state): Pass dump_flags on, with nouid. * passes.c (pass_init_dump_file): Pass dump_flags on. * tree-cfg.c (gimple_dump_cfg): Pass flags on. From-SVN: r174698
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r--gcc/tree-pretty-print.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index bfdcad6..2102aaa 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -3018,7 +3018,7 @@ pp_base_tree_identifier (pretty_printer *pp, tree id)
function dump. */
void
-dump_function_header (FILE *dump_file, tree fdecl)
+dump_function_header (FILE *dump_file, tree fdecl, int flags)
{
const char *dname, *aname;
struct cgraph_node *node = cgraph_get_node (fdecl);
@@ -3032,11 +3032,13 @@ dump_function_header (FILE *dump_file, tree fdecl)
else
aname = "<unset-asm-name>";
+ fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d",
+ dname, aname, fun->funcdef_no);
+ if (!(flags & TDF_NOUID))
+ fprintf (dump_file, ", decl_uid=%d", DECL_UID (fdecl));
if (node)
{
- fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d, decl_uid=%d, cgraph_uid=%d)",
- dname, aname, fun->funcdef_no, DECL_UID(fdecl), node->uid);
- fprintf (dump_file, "%s\n\n",
+ fprintf (dump_file, ", cgraph_uid=%d)%s\n\n", node->uid,
node->frequency == NODE_FREQUENCY_HOT
? " (hot)"
: node->frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED
@@ -3046,6 +3048,5 @@ dump_function_header (FILE *dump_file, tree fdecl)
: "");
}
else
- fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d, decl_uid = %d)",
- dname, aname, fun->funcdef_no, DECL_UID(fdecl));
+ fprintf (dump_file, ")\n\n");
}