aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-objcp-common.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2018-06-21 14:19:29 -0400
committerJason Merrill <jason@gcc.gnu.org>2018-06-21 14:19:29 -0400
commit6ec04704dfb7425443de886e7f590286ce3b87a0 (patch)
tree9fd7714ad2ce10751035bb8a12fb34283a3f9b32 /gcc/cp/cp-objcp-common.h
parent8745500a49bfde05e5a82bd3f8a22a7fe46e2fc7 (diff)
downloadgcc-6ec04704dfb7425443de886e7f590286ce3b87a0.zip
gcc-6ec04704dfb7425443de886e7f590286ce3b87a0.tar.gz
gcc-6ec04704dfb7425443de886e7f590286ce3b87a0.tar.bz2
Let -fmem-report see callers of cxx_make_type.
* lex.c (cxx_make_type): Add MEM_STAT_DECL. (make_class_type): Likewise. (cxx_make_type_hook): New. * cp-objcp-common.h (LANG_HOOKS_MAKE_TYPE): Use cxx_make_type_hook. From-SVN: r261859
Diffstat (limited to 'gcc/cp/cp-objcp-common.h')
-rw-r--r--gcc/cp/cp-objcp-common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/cp-objcp-common.h b/gcc/cp/cp-objcp-common.h
index 18ccc5b..6f08253 100644
--- a/gcc/cp/cp-objcp-common.h
+++ b/gcc/cp/cp-objcp-common.h
@@ -34,6 +34,7 @@ extern tree cp_unit_size_without_reusable_padding (tree);
extern tree cp_get_global_decls ();
extern tree cp_pushdecl (tree);
extern void cp_register_dumps (gcc::dump_manager *);
+extern tree cxx_make_type_hook (tree_code);
/* Lang hooks that are shared between C++ and ObjC++ are defined here. Hooks
specific to C++ or ObjC++ go in cp/cp-lang.c and objcp/objcp-lang.c,
@@ -126,7 +127,7 @@ extern void cp_register_dumps (gcc::dump_manager *);
#define LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN cp_type_quals
#undef LANG_HOOKS_MAKE_TYPE
-#define LANG_HOOKS_MAKE_TYPE cxx_make_type
+#define LANG_HOOKS_MAKE_TYPE cxx_make_type_hook
#undef LANG_HOOKS_TYPE_FOR_MODE
#define LANG_HOOKS_TYPE_FOR_MODE c_common_type_for_mode
#undef LANG_HOOKS_TYPE_FOR_SIZE