コード例 #1
0
ファイル: rtti.c プロジェクト: siutin/self_os
void
init_rtti_processing ()
{
    push_namespace (std_identifier);
    type_info_type_node = xref_tag
                          (class_type_node, get_identifier ("type_info"), 1);
    pop_namespace ();
    type_info_ptr_type =
        build_pointer_type
        (build_qualified_type (type_info_type_node, TYPE_QUAL_CONST));

    create_tinfo_types ();
}
コード例 #2
0
void
init_rtti_processing (void)
{
    tree type_info_type;

    push_namespace (std_identifier);
    type_info_type = xref_tag (class_type, get_identifier ("type_info"),
                               /*tag_scope=*/ts_current, false);
    pop_namespace ();
    const_type_info_type_node
        = build_qualified_type (type_info_type, TYPE_QUAL_CONST);
    type_info_ptr_type = build_pointer_type (const_type_info_type_node);

    unemitted_tinfo_decls = VEC_alloc (tree, 124);

    create_tinfo_types ();
}