diff options
author | Mike Stump <mrs@gcc.gnu.org> | 1994-06-15 18:30:58 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 1994-06-15 18:30:58 +0000 |
commit | f0e01782d7d294907fe8f8325bfae9c6fae7a877 (patch) | |
tree | 2990254a5379920de31c9e0548663ccf4769e623 /gcc/cp/xref.c | |
parent | 7dbe2fdcf52add2c55b4e7ba95216942fb274a4a (diff) | |
download | gcc-f0e01782d7d294907fe8f8325bfae9c6fae7a877.zip gcc-f0e01782d7d294907fe8f8325bfae9c6fae7a877.tar.gz gcc-f0e01782d7d294907fe8f8325bfae9c6fae7a877.tar.bz2 |
40th Cygnus<->FSF merge
From-SVN: r7493
Diffstat (limited to 'gcc/cp/xref.c')
-rw-r--r-- | gcc/cp/xref.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; |