mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-20 12:41:17 +08:00
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:
parent
9abe5e56e2
commit
c7ac4fb53d
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user