diff options
author | Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> | 2000-03-23 01:41:05 +0100 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-03-23 00:41:05 +0000 |
commit | 2f939d94068972c5b14ab98f50c6789621810a4a (patch) | |
tree | 3588211f05cbc41af8eb3dfc8cba0426d5fc4960 /gcc/cp/error.c | |
parent | a574f8e87319a6229ad1b1a91d0c3a34e605a1f0 (diff) | |
download | gcc-2f939d94068972c5b14ab98f50c6789621810a4a.zip gcc-2f939d94068972c5b14ab98f50c6789621810a4a.tar.gz gcc-2f939d94068972c5b14ab98f50c6789621810a4a.tar.bz2 |
builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
* builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
* c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
c_get_alias_set): Likewise.
* c-decl.c (duplicate_decls): Likewise.
* c-typeck.c (default_conversion,build_unary_op): Likewise.
* calls.c (initialize_argument_information): Likewise.
* dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
Likewise.
* dwarfout.c (decl_class_context,output_type): Likewise.
* expr.c (get_inner_reference): Likewise.
* fold-const.c (simple_operand_p,fold): Likewise.
* function.c (aggregate_value_p): Likewise.
* stmt.c (expand_asm_operands): Likewise.
* varasm.c (named_section): Likewise.
* call.c (check_dtor_name,build_new_method_call): Likewise.
* decl.c (push_class_binding,poplevel,pushtag,lookup_namespace_name,
make_typename_type,check_initializer,cp_finish_decl,xref_tag): Likewise.
* decl2.c (grokfield,build_expr_from_tree,build_expr_from_tree,
decl_namespace,arg_assoc_template_arg,arg_assoc,
validate_nonmember_using_decl,do_class_using_decl): Likewise.
* error.c (dump_template_argument,dump_expr,cp_file_of,cp_line_of,
args_to_string): Likewise.
* friend.c (is_friend): Likewise.
* lex.c (note_got_semicolon,note_list_got_semicolon,is_global): Likewise.
* method.c (build_overload_nested_name,build_overload_value,
build_qualified_name,build_qualified_name,hack_identifier): Likewise.
* parse.y (typename_sub,typename_sub1): Likewise.
* pt.c (push_inline_template_parms_recursive,check_template_shadow,
process_partial_specialization,convert_template_argument,
template_args_equal,add_pending_template,lookup_template_class,
for_each_template_parm_r,maybe_fold_nontype_arg,
tsubst,instantiate_template,type_unification_real,unify,
instantiate_pending_templates,set_mangled_name_for_template_decl):
Likewise.
* repo.c (repo_get_id,repo_template_used): Likewise.
* search.c (lookup_field_1): Likewise.
* tree.c (walk_tree,get_type_decl,cp_tree_equal,member_p): Likewise.
* xref.c (classname): Likewise.
From-SVN: r32698
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index e5a0872..a0be98f 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -221,8 +221,7 @@ dump_template_argument (arg, flags) tree arg; enum tree_string_flags flags; { - if (TREE_CODE_CLASS (TREE_CODE (arg)) == 't' - || TREE_CODE (arg) == TEMPLATE_DECL) + if (TYPE_P (arg) || TREE_CODE (arg) == TEMPLATE_DECL) dump_type (arg, flags & ~TS_AGGR_TAGS); else dump_expr (arg, (flags | TS_EXPR_PARENS) & ~TS_AGGR_TAGS); @@ -1965,7 +1964,7 @@ dump_expr (t, flags) my_friendly_assert (TREE_CODE (t) == ALIGNOF_EXPR, 0); OB_PUTS ("__alignof__ ("); } - if (TREE_CODE_CLASS (TREE_CODE (TREE_OPERAND (t, 0))) == 't') + if (TYPE_P (TREE_OPERAND (t, 0))) dump_type (TREE_OPERAND (t, 0), flags); else dump_unary_op ("*", t, flags | TS_EXPR_PARENS); @@ -2165,7 +2164,7 @@ cp_file_of (t) { if (TREE_CODE (t) == PARM_DECL && DECL_CONTEXT (t)) return DECL_SOURCE_FILE (DECL_CONTEXT (t)); - else if (TREE_CODE_CLASS (TREE_CODE (t)) == 't') + else if (TYPE_P (t)) return DECL_SOURCE_FILE (TYPE_MAIN_DECL (t)); else if (TREE_CODE (t) == OVERLOAD) return DECL_SOURCE_FILE (OVL_FUNCTION (t)); @@ -2184,7 +2183,7 @@ cp_line_of (t) && TYPE_MAIN_DECL (TREE_TYPE (t))) t = TREE_TYPE (t); - if (TREE_CODE_CLASS (TREE_CODE (t)) == 't') + if (TYPE_P (t)) line = DECL_SOURCE_LINE (TYPE_MAIN_DECL (t)); else if (TREE_CODE (t) == OVERLOAD) line = DECL_SOURCE_LINE (OVL_FUNCTION (t)); @@ -2365,7 +2364,7 @@ args_to_string (p, verbose) if (p == NULL_TREE) return ""; - if (TREE_CODE_CLASS (TREE_CODE (TREE_VALUE (p))) == 't') + if (TYPE_P (TREE_VALUE (p))) return type_as_string (p, flags); OB_INIT (); |