summaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authordavidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-01 17:42:39 +0000
committerdavidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-01 17:42:39 +0000
commit7009b7bd92b7925a6894a7b9b5f9bbcf11214721 (patch)
treebd47a6c1db5bf72c650753ad4f7238f47f6f6d3c /gcc/final.c
parente2ed6265ca2fe7a92a7d879a8e97828631bbdb5e (diff)
downloadgcc-7009b7bd92b7925a6894a7b9b5f9bbcf11214721.tar.gz
Better function header dump
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174536 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 7e1ae902477..af8047c1608 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;