diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-05-24 06:22:35 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-05-24 04:22:35 +0000 |
commit | 66f0bbd50c8cb13422f8cb60eb1a1077972c58cb (patch) | |
tree | 2219295672a4ad959f01c9099b49dad6fa53d9c6 /gcc/tree.c | |
parent | 0e5f14d42027a66519fc8129c7632608783eeaeb (diff) | |
download | gcc-66f0bbd50c8cb13422f8cb60eb1a1077972c58cb.zip gcc-66f0bbd50c8cb13422f8cb60eb1a1077972c58cb.tar.gz gcc-66f0bbd50c8cb13422f8cb60eb1a1077972c58cb.tar.bz2 |
tree.c (prototype_p, [...]): Constify.
* tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
is_typedef_decl, typedef_variant_p): Constify.
* tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
is_typedef_decl, typedef_variant_p): Constify.
From-SVN: r223628
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -11579,7 +11579,7 @@ stdarg_p (const_tree fntype) /* Return true if TYPE has a prototype. */ bool -prototype_p (tree fntype) +prototype_p (const_tree fntype) { tree t; @@ -12005,7 +12005,7 @@ lhd_gcc_personality (void) can't apply.) */ bool -virtual_method_call_p (tree target) +virtual_method_call_p (const_tree target) { if (TREE_CODE (target) != OBJ_TYPE_REF) return false; @@ -12026,7 +12026,7 @@ virtual_method_call_p (tree target) /* REF is OBJ_TYPE_REF, return the class the ref corresponds to. */ tree -obj_type_ref_class (tree ref) +obj_type_ref_class (const_tree ref) { gcc_checking_assert (TREE_CODE (ref) == OBJ_TYPE_REF); ref = TREE_TYPE (ref); @@ -12124,7 +12124,7 @@ get_binfo_at_offset (tree binfo, HOST_WIDE_INT offset, tree expected_type) /* Returns true if X is a typedef decl. */ bool -is_typedef_decl (tree x) +is_typedef_decl (const_tree x) { return (x && TREE_CODE (x) == TYPE_DECL && DECL_ORIGINAL_TYPE (x) != NULL_TREE); @@ -12133,7 +12133,7 @@ is_typedef_decl (tree x) /* Returns true iff TYPE is a type variant created for a typedef. */ bool -typedef_variant_p (tree type) +typedef_variant_p (const_tree type) { return is_typedef_decl (TYPE_NAME (type)); } |