diff options
author | David Li <davidxl@google.com> | 2011-06-01 17:42:39 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@gcc.gnu.org> | 2011-06-01 17:42:39 +0000 |
commit | ea6cf778dd408c1f4a0a929f5b7b0896843250a1 (patch) | |
tree | bd47a6c1db5bf72c650753ad4f7238f47f6f6d3c /gcc/final.c | |
parent | eeeb9b49bdae0cd4fe6bf4dc3bd75d401ae5c66d (diff) | |
download | gcc-ea6cf778dd408c1f4a0a929f5b7b0896843250a1.zip gcc-ea6cf778dd408c1f4a0a929f5b7b0896843250a1.tar.gz gcc-ea6cf778dd408c1f4a0a929f5b7b0896843250a1.tar.bz2 |
Better function header dump
From-SVN: r174536
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/gcc/final.c b/gcc/final.c index 7e1ae90..af8047c 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -83,6 +83,7 @@ along with GCC; see the file COPYING3. If not see #include "ggc.h" #include "cfgloop.h" #include "params.h" +#include "tree-pretty-print.h" #ifdef XCOFF_DEBUGGING_INFO #include "xcoffout.h" /* Needed for external data @@ -4360,20 +4361,7 @@ rest_of_clean_state (void) } else { - const char *aname; - struct cgraph_node *node = cgraph_get_node (current_function_decl); - - aname = (IDENTIFIER_POINTER - (DECL_ASSEMBLER_NAME (current_function_decl))); - fprintf (final_output, "\n;; Function (%s) %s\n\n", aname, - node->frequency == NODE_FREQUENCY_HOT - ? " (hot)" - : node->frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED - ? " (unlikely executed)" - : node->frequency == NODE_FREQUENCY_EXECUTED_ONCE - ? " (executed once)" - : ""); - + dump_function_header (final_output, current_function_decl); flag_dump_noaddr = flag_dump_unnumbered = 1; if (flag_compare_debug_opt || flag_compare_debug) dump_flags |= TDF_NOUID; |