From f0e01782d7d294907fe8f8325bfae9c6fae7a877 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Wed, 15 Jun 1994 18:30:58 +0000 Subject: 40th Cygnus<->FSF merge From-SVN: r7493 --- gcc/cp/xref.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gcc/cp/xref.c') diff --git a/gcc/cp/xref.c b/gcc/cp/xref.c index 4a300c2..283771b 100644 --- a/gcc/cp/xref.c +++ b/gcc/cp/xref.c @@ -397,6 +397,18 @@ GNU_xref_decl (fndecl,decl) decl = TYPE_NAME (decl); uselin = TRUE; } + else if (TREE_CODE (decl) == TEMPLATE_DECL) + { + if (DECL_TEMPLATE_IS_CLASS (decl)) + cls = "CLASSTEMP"; + else if (TREE_CODE (DECL_RESULT (decl)) == FUNCTION_DECL) + cls = "FUNCTEMP"; + else if (TREE_CODE (DECL_RESULT (decl)) == VAR_DECL) + cls = "VARTEMP"; + else + my_friendly_abort (358); + uselin = TRUE; + } else cls = "UNKNOWN"; if (decl == NULL || DECL_NAME (decl) == NULL) return; -- cgit v1.1