aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2004-02-24 13:23:25 -0500
committerJason Merrill <jason@gcc.gnu.org>2004-02-24 13:23:25 -0500
commit896c3aa346912570aacfa51834145311de94632b (patch)
tree10d698360ffb12ad09cb08c4d3925aebb79ecd40 /gcc/tree.h
parent58565a33ed8ca46cd1d3745f96786f3b4b0ebda3 (diff)
downloadgcc-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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 25ba23a..7846b54 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -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. */