diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-10-17 08:53:00 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-10-17 08:53:00 +0200 |
commit | 81b42cc69beca2d92cf2675b8b3c1c714f8f74fd (patch) | |
tree | 811f8875b4efdbf7940bca258ddcf5f69be38c13 /gcc/langhooks.c | |
parent | 7d66648f6c1ba3f353dadd26a0caf3d5ceebb51c (diff) |
langhooks.h (struct lang_hooks_for_decls): Remove function_decl_explicit_p...
* langhooks.h (struct lang_hooks_for_decls): Remove
function_decl_explicit_p, function_decl_deleted_p and
function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
* langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
(LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
LANG_HOOKS_FUNCTION_DECL_DELETED_P,
LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
(LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
(LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
LANG_HOOKS_FUNCTION_DECL_DELETED_P and
LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
* langhooks.c (lhd_decl_dwarf_attribute): New function.
* dwarf2out.c (gen_subprogram_die): Use
lang_hooks.decls.decl_dwarf_attribute instead of
lang_hooks.decls.function_decl_*.
cp/
* cp-objcp-common.h (cp_function_decl_explicit_p,
cp_function_decl_deleted_p, cp_function_decl_defaulted): Remove.
(cp_decl_dwarf_attribute): Declare.
(LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
LANG_HOOKS_FUNCTION_DECL_DELETED_P,
LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
(LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Redefine.
* cp-objcp-common.c (cp_function_decl_explicit_p,
cp_function_decl_deleted_p, cp_function_decl_defaulted): Remove.
(cp_decl_dwarf_attribute): New function.
From-SVN: r241227
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 792eb4828e8..370990ef43b 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -693,6 +693,15 @@ lhd_get_substring_location (const substring_loc &, location_t *) return "unimplemented"; } +/* Default implementation of LANG_HOOKS_DECL_DWARF_ATTRIBUTE. Don't add + any attributes. */ + +int +lhd_decl_dwarf_attribute (const_tree, int) +{ + return -1; +} + /* Returns true if the current lang_hooks represents the GNU C frontend. */ bool |