diff options
author | Ben Elliston <bje@au.ibm.com> | 2004-11-24 04:09:27 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2004-11-24 15:09:27 +1100 |
commit | af746697141397c71da91a4f52f2e3b9db005cec (patch) | |
tree | f402c5fea47ec7ddebaa9e4cae76711df49aa044 /gcc/cp/lex.c | |
parent | 0b167d51ed3c0f9dfa2cee5bde9d7fd5a6bdd04d (diff) | |
download | gcc-af746697141397c71da91a4f52f2e3b9db005cec.zip gcc-af746697141397c71da91a4f52f2e3b9db005cec.tar.gz gcc-af746697141397c71da91a4f52f2e3b9db005cec.tar.bz2 |
cp-tree.h (context_as_string): Remove extern.
* cp-tree.h (context_as_string): Remove extern.
* error.c (context_as_string): Remove.
* cp-tree.h (cp_type_qual_from_rid): Remove extern.
* lex.c (cp_type_qual_from_rid): Remove.
* cp-tree.h (do_poplevel): Remove extern.
(check_multiple_declarators): Likewise.
* semantics.c (do_poplevel): Make static.
(check_multiple_declarators): Remove.
* cp-tree.h (check_final_overrider): Remove extern.
* search.c (check_final_overrider): Make static.
* cp-tree.h (build_artificial_parm): Remove extern.
* decl2.c (build_artificial_parm): Make static.
From-SVN: r91134
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index d9775d9..85d8813 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -796,20 +796,3 @@ make_aggr_type (enum tree_code code) return t; } - -/* Return the type-qualifier corresponding to the identifier given by - RID. */ - -int -cp_type_qual_from_rid (tree rid) -{ - if (rid == ridpointers[(int) RID_CONST]) - return TYPE_QUAL_CONST; - else if (rid == ridpointers[(int) RID_VOLATILE]) - return TYPE_QUAL_VOLATILE; - else if (rid == ridpointers[(int) RID_RESTRICT]) - return TYPE_QUAL_RESTRICT; - - gcc_unreachable (); - return TYPE_UNQUALIFIED; -} |