diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-06 11:44:09 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-06 11:44:09 +0000 |
commit | 074ab442f459e8d6fa5cb8f36e98b20468f7a35a (patch) | |
tree | f6bc5402cc736afb252a23b78b57e4d60b438ef9 /gcc/cp/rtti.c | |
parent | 15b5961fab95969cd4a69942cabd54eb066c545f (diff) | |
download | gcc-074ab442f459e8d6fa5cb8f36e98b20468f7a35a.tar.gz |
Fix up whitespacing
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114428 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r-- | gcc/cp/rtti.c | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 7a469967132..898db00f311 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -89,8 +89,8 @@ typedef enum tinfo_kind TK_POINTER_MEMBER_TYPE, /* abi::__pointer_to_member_type_info */ TK_CLASS_TYPE, /* abi::__class_type_info */ TK_SI_CLASS_TYPE, /* abi::__si_class_type_info */ - TK_FIXED /* end of fixed descriptors. */ - /* ... abi::__vmi_type_info<I> */ + TK_FIXED /* end of fixed descriptors. */ + /* ... abi::__vmi_type_info<I> */ } tinfo_kind; /* A vector of all tinfo decls that haven't yet been emitted. */ @@ -865,7 +865,7 @@ tinfo_base_init (tinfo_s *ti, tree target) size_binop (MULT_EXPR, size_int (2 * TARGET_VTABLE_DATA_ENTRY_DISTANCE), TYPE_SIZE_UNIT (vtable_entry_type))); - + ti->vtable = vtable_ptr; } @@ -890,7 +890,7 @@ static tree generic_initializer (tinfo_s *ti, tree target) { tree init = tinfo_base_init (ti, target); - + init = build_constructor_from_list (NULL_TREE, init); TREE_CONSTANT (init) = 1; TREE_INVARIANT (init) = 1; @@ -949,7 +949,7 @@ ptm_initializer (tinfo_s *ti, tree target) init = tree_cons (NULL_TREE, get_tinfo_ptr (klass), init); - + init = build_constructor_from_list (NULL_TREE, nreverse (init)); TREE_CONSTANT (init) = 1; TREE_INVARIANT (init) = 1; @@ -1007,16 +1007,16 @@ static tree get_pseudo_ti_init (tree type, unsigned tk_index) { tinfo_s *ti = VEC_index (tinfo_s, tinfo_descs, tk_index); - + gcc_assert (at_eof); switch (tk_index) { case TK_POINTER_MEMBER_TYPE: return ptm_initializer (ti, type); - + case TK_POINTER_TYPE: return ptr_initializer (ti, type); - + case TK_BUILTIN_TYPE: case TK_ENUMERAL_TYPE: case TK_FUNCTION_TYPE: @@ -1046,9 +1046,9 @@ get_pseudo_ti_init (tree type, unsigned tk_index) VEC(tree,gc) *base_accesses = BINFO_BASE_ACCESSES (binfo); tree base_inits = NULL_TREE; int ix; - + gcc_assert (tk_index >= TK_FIXED); - + /* Generate the base information initializer. */ for (ix = nbases; ix--;) { @@ -1057,21 +1057,21 @@ get_pseudo_ti_init (tree type, unsigned tk_index) int flags = 0; tree tinfo; tree offset; - + if (VEC_index (tree, base_accesses, ix) == access_public_node) flags |= 2; tinfo = get_tinfo_ptr (BINFO_TYPE (base_binfo)); if (BINFO_VIRTUAL_P (base_binfo)) { /* We store the vtable offset at which the virtual - base offset can be found. */ + base offset can be found. */ offset = BINFO_VPTR_FIELD (base_binfo); offset = convert (sizetype, offset); flags |= 1; } else offset = BINFO_OFFSET (base_binfo); - + /* Combine offset and flags into one field. */ offset = cp_build_binary_op (LSHIFT_EXPR, offset, build_int_cst (NULL_TREE, 8)); @@ -1167,29 +1167,29 @@ static unsigned get_pseudo_ti_index (tree type) { unsigned ix; - + switch (TREE_CODE (type)) { case OFFSET_TYPE: ix = TK_POINTER_MEMBER_TYPE; break; - + case POINTER_TYPE: ix = TK_POINTER_TYPE; break; - + case ENUMERAL_TYPE: ix = TK_ENUMERAL_TYPE; break; - + case FUNCTION_TYPE: ix = TK_FUNCTION_TYPE; break; - + case ARRAY_TYPE: ix = TK_ARRAY_TYPE; break; - + case UNION_TYPE: case RECORD_TYPE: if (TYPE_PTRMEMFUNC_P (type)) @@ -1235,7 +1235,7 @@ get_pseudo_ti_index (tree type) { /* too short, extend. */ unsigned len = VEC_length (tinfo_s, tinfo_descs); - + VEC_safe_grow (tinfo_s, gc, tinfo_descs, ix + 1); while (VEC_iterate (tinfo_s, tinfo_descs, len++, ti)) ti->type = ti->vtable = ti->name = NULL_TREE; @@ -1282,11 +1282,11 @@ static void create_tinfo_types (void) { tinfo_s *ti; - + gcc_assert (!tinfo_descs); VEC_safe_grow (tinfo_s, gc, tinfo_descs, TK_FIXED); - + push_nested_namespace (abi_node); /* Create the internal type_info structure. This is used as a base for @@ -1317,15 +1317,15 @@ create_tinfo_types (void) create_pseudo_type_info (TK_ARRAY_TYPE, "__array_type_info", NULL); create_pseudo_type_info (TK_FUNCTION_TYPE, "__function_type_info", NULL); create_pseudo_type_info (TK_ENUMERAL_TYPE, "__enum_type_info", NULL); - + /* Class type_info. No additional fields. */ create_pseudo_type_info (TK_CLASS_TYPE, "__class_type_info", NULL); - - /* Single public non-virtual base class. Add pointer to base class. + + /* Single public non-virtual base class. Add pointer to base class. This is really a descendant of __class_type_info. */ create_pseudo_type_info (TK_SI_CLASS_TYPE, "__si_class_type_info", - build_decl (FIELD_DECL, NULL_TREE, type_info_ptr_type), - NULL); + build_decl (FIELD_DECL, NULL_TREE, type_info_ptr_type), + NULL); /* Base class internal helper. Pointer to base type, offset to base, flags. */ @@ -1338,9 +1338,9 @@ create_tinfo_types (void) field = build_decl (FIELD_DECL, NULL_TREE, integer_types[itk_long]); TREE_CHAIN (field) = fields; fields = field; - + ti = VEC_index (tinfo_s, tinfo_descs, TK_BASE_TYPE); - + ti->type = make_aggr_type (RECORD_TYPE); ti->vtable = NULL_TREE; ti->name = NULL_TREE; @@ -1362,10 +1362,10 @@ create_tinfo_types (void) This is really a descendant of __pbase_type_info. */ create_pseudo_type_info (TK_POINTER_MEMBER_TYPE, "__pointer_to_member_type_info", - build_decl (FIELD_DECL, NULL_TREE, integer_type_node), - build_decl (FIELD_DECL, NULL_TREE, type_info_ptr_type), - build_decl (FIELD_DECL, NULL_TREE, type_info_ptr_type), - NULL); + build_decl (FIELD_DECL, NULL_TREE, integer_type_node), + build_decl (FIELD_DECL, NULL_TREE, type_info_ptr_type), + build_decl (FIELD_DECL, NULL_TREE, type_info_ptr_type), + NULL); pop_nested_namespace (abi_node); } @@ -1482,7 +1482,7 @@ emit_tinfo_decl (tree decl) if (DECL_NOT_REALLY_EXTERN (decl) && decl_needed_p (decl)) { tree init; - + DECL_EXTERNAL (decl) = 0; init = get_pseudo_ti_init (type, get_pseudo_ti_index (type)); DECL_INITIAL (decl) = init; |