function.c (current_function_name): If there is no current function just return "<none>".

* function.c (current_function_name): If there is no current
        function just return "<none>".

From-SVN: r152269
This commit is contained in:
Nick Clifton 2009-09-29 09:31:41 +00:00 committed by Nick Clifton
parent 9abe5e56e2
commit c7ac4fb53d
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-09-29 Nick Clifton <nickc@redhat.com>
* function.c (current_function_name): If there is no current
function just return "<none>".
2009-09-28 Sriraman Tallam <tmsriram@google.com>
* tree-pass.h (register_pass_info): New structure.

View File

@ -5415,6 +5415,8 @@ reposition_prologue_and_epilogue_notes (void)
const char *
current_function_name (void)
{
if (cfun == NULL)
return "<none>";
return lang_hooks.decl_printable_name (cfun->decl, 2);
}