diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2005-01-17 08:11:20 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-01-17 08:11:20 +0000 |
commit | 2e6da5d7da73a62dec7c48d008bd2d4045546aa0 (patch) | |
tree | 1fcf699d734447f85d990c15c89c74213bc4d225 /gcc | |
parent | f2d362e529636a0eb18e760c9e7a92db168fc0b0 (diff) | |
download | gcc-2e6da5d7da73a62dec7c48d008bd2d4045546aa0.zip gcc-2e6da5d7da73a62dec7c48d008bd2d4045546aa0.tar.gz gcc-2e6da5d7da73a62dec7c48d008bd2d4045546aa0.tar.bz2 |
pt.c (tinst_for_decl): Remove.
* pt.c (tinst_for_decl): Remove.
* cp-tree.h: Remove the corresponding prototypes.
From-SVN: r93756
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 1 | ||||
-rw-r--r-- | gcc/cp/pt.c | 14 |
3 files changed, 3 insertions, 15 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 47b837c..0f7f6b4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -6,6 +6,9 @@ * cvt.c (convert_lvalue): Remove. * cp-tree.h: Remove the corresponding prototype. + * pt.c (tinst_for_decl): Remove. + * cp-tree.h: Remove the corresponding prototypes. + 2005-01-15 Jakub Jelinek <jakub@redhat.com> PR c++/19263 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index d2a7b55..5f091db 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4009,7 +4009,6 @@ extern int uses_template_parms_level (tree, int); extern tree instantiate_class_template (tree); extern tree instantiate_template (tree, tree, tsubst_flags_t); extern int fn_type_unification (tree, tree, tree, tree, tree, unification_kind_t, int); -extern tree tinst_for_decl (void); extern void mark_decl_instantiated (tree, int); extern int more_specialized (tree, tree, int, int); extern void mark_class_instantiated (tree, int); diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 972e266..72d4528 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -5075,20 +5075,6 @@ reopen_tinst_level (tree level) pop_tinst_level (); } -/* Return the outermost template instantiation context, for use with - -falt-external-templates. */ - -tree -tinst_for_decl (void) -{ - tree p = current_tinst_level; - - if (p) - for (; TREE_CHAIN (p) ; p = TREE_CHAIN (p)) - ; - return p; -} - /* DECL is a friend FUNCTION_DECL or TEMPLATE_DECL. ARGS is the vector of template arguments, as for tsubst. |