Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
1cd56e0e
Commit
1cd56e0e
authored
Oct 11, 1996
by
Mike Stump
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial revision
From-SVN: r12954
parent
d22c8596
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
gcc/cp/tinfo.h
+55
-0
No files found.
gcc/cp/tinfo.h
0 → 100644
View file @
1cd56e0e
// RTTI support internals for -*- C++ -*-
// Copyright (C) 1994, 1995, 1996 Free Software Foundation
#include "typeinfo"
// Class declarations shared between the typeinfo implementation files.
// type_info for a class with no base classes (or an enum).
struct
__user_type_info
:
public
type_info
{
__user_type_info
(
const
char
*
n
)
:
type_info
(
n
)
{}
// If our type can be converted to the desired type,
// return the pointer, adjusted accordingly; else return 0.
virtual
void
*
dcast
(
const
type_info
&
,
int
,
void
*
,
const
type_info
*
=
0
,
void
*
=
0
)
const
;
};
// type_info for a class with one public, nonvirtual base class.
class
__si_type_info
:
public
__user_type_info
{
const
__user_type_info
&
base
;
public
:
__si_type_info
(
const
char
*
n
,
const
__user_type_info
&
b
)
:
__user_type_info
(
n
),
base
(
b
)
{
}
virtual
void
*
dcast
(
const
type_info
&
,
int
,
void
*
,
const
type_info
*
=
0
,
void
*
=
0
)
const
;
};
// type_info for a general class.
typedef
unsigned
int
USItype
__attribute__
((
mode
(
SI
)));
struct
__class_type_info
:
public
__user_type_info
{
enum
access
{
PUBLIC
=
1
,
PROTECTED
=
2
,
PRIVATE
=
3
};
struct
base_info
{
const
__user_type_info
*
base
;
USItype
offset
:
29
;
bool
is_virtual
:
1
;
access
access
:
2
;
};
const
base_info
*
base_list
;
size_t
n_bases
;
__class_type_info
(
const
char
*
name
,
const
base_info
*
bl
,
size_t
bn
)
:
__user_type_info
(
name
),
base_list
(
bl
),
n_bases
(
bn
)
{}
// This is a little complex.
virtual
void
*
dcast
(
const
type_info
&
,
int
,
void
*
,
const
type_info
*
=
0
,
void
*
=
0
)
const
;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment