diff options
author | Andrew Haley <aph@redhat.com> | 2003-10-06 13:50:41 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2003-10-06 13:50:41 +0000 |
commit | 83d865c57c34520403cdd160c289b3c5e6287805 (patch) | |
tree | 1648237777c5c056de49de22c4c8ee760de29466 /gcc/tree.c | |
parent | 75f604438c2fec75b9cca6e4917679d5250babb1 (diff) | |
download | gcc-83d865c57c34520403cdd160c289b3c5e6287805.zip gcc-83d865c57c34520403cdd160c289b3c5e6287805.tar.gz gcc-83d865c57c34520403cdd160c289b3c5e6287805.tar.bz2 |
tree.c (get_callee_fndecl): Call lang_hooks.lang_get_callee_fndecl.
2003-10-06 Andrew Haley <aph@redhat.com>
* tree.c (get_callee_fndecl): Call
lang_hooks.lang_get_callee_fndecl.
* langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
(lhd_get_callee_fndecl): New.
From-SVN: r72150
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -4449,9 +4449,10 @@ get_callee_fndecl (tree call) if (TREE_CODE (addr) == ADDR_EXPR && TREE_CODE (TREE_OPERAND (addr, 0)) == FUNCTION_DECL) return TREE_OPERAND (addr, 0); - - /* We couldn't figure out what was being called. */ - return NULL_TREE; + + /* We couldn't figure out what was being called. Maybe the front + end has some idea. */ + return (*lang_hooks.lang_get_callee_fndecl) (call); } /* Print debugging information about tree nodes generated during the compile, |