Commit c7ac4fb5 by Nick Clifton Committed by Nick Clifton

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
parent 9abe5e56
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> 2009-09-28 Sriraman Tallam <tmsriram@google.com>
* tree-pass.h (register_pass_info): New structure. * tree-pass.h (register_pass_info): New structure.
...@@ -5415,6 +5415,8 @@ reposition_prologue_and_epilogue_notes (void) ...@@ -5415,6 +5415,8 @@ reposition_prologue_and_epilogue_notes (void)
const char * const char *
current_function_name (void) current_function_name (void)
{ {
if (cfun == NULL)
return "<none>";
return lang_hooks.decl_printable_name (cfun->decl, 2); return lang_hooks.decl_printable_name (cfun->decl, 2);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment