diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2004-02-24 13:23:25 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2004-02-24 13:23:25 -0500 |
commit | 896c3aa346912570aacfa51834145311de94632b (patch) | |
tree | 10d698360ffb12ad09cb08c4d3925aebb79ecd40 /gcc/tree.h | |
parent | 58565a33ed8ca46cd1d3745f96786f3b4b0ebda3 (diff) | |
download | gcc-896c3aa346912570aacfa51834145311de94632b.zip gcc-896c3aa346912570aacfa51834145311de94632b.tar.gz gcc-896c3aa346912570aacfa51834145311de94632b.tar.bz2 |
tree.c (check_qualified_type): New fn.
* tree.c (check_qualified_type): New fn.
(get_qualified_type): Use it. If type already has the desired
quals, just return it.
* tree.h: Declare it.
* cp/tree.c (build_exception_variant): Use it.
From-SVN: r78376
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2304,6 +2304,11 @@ extern tree merge_attributes (tree, tree); extern tree merge_dllimport_decl_attributes (tree, tree); #endif +/* Check whether CAND is suitable to be returned from get_qualified_type + (BASE, TYPE_QUALS). */ + +extern bool check_qualified_type (tree, tree, int); + /* Return a version of the TYPE, qualified as indicated by the TYPE_QUALS, if one exists. If no qualified version exists yet, return NULL_TREE. */ |