line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package GCC::Node::Type; |
2
|
1
|
|
|
1
|
|
8
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
68
|
|
3
|
1
|
|
|
1
|
|
6
|
use base qw(GCC::Node); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
1251
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# TYPE_QUAL_CONST |
6
|
0
|
|
|
0
|
0
|
|
sub const { shift->{const} } |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# TYPE_QUAL_VOLATILE |
9
|
0
|
|
|
0
|
0
|
|
sub volatile { shift->{volatile} } |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# TYPE_QUAL_RESTRICT |
12
|
0
|
|
|
0
|
0
|
|
sub restrict { shift->{restrict} } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# return qualifier string |
15
|
|
|
|
|
|
|
sub quals { |
16
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
17
|
0
|
|
|
|
|
|
my @quals; |
18
|
0
|
0
|
|
|
|
|
push @quals, "const" if $self->const; |
19
|
0
|
0
|
|
|
|
|
push @quals, "volatile" if $self->volatile; |
20
|
0
|
0
|
|
|
|
|
push @quals, "__restrict" if $self->restrict; |
21
|
0
|
|
|
|
|
|
return @quals; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub qual { |
25
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
26
|
0
|
|
|
|
|
|
my @quals = $self->quals; |
27
|
0
|
|
|
|
|
|
local($") = " "; |
28
|
0
|
|
|
|
|
|
return "@quals"; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
# TYPE_NAME |
32
|
0
|
|
|
0
|
0
|
|
sub name { shift->{name} } |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
# TYPE_MAIN_VARIANT |
35
|
0
|
|
|
0
|
0
|
|
sub main_variant { shift->{unql} } |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# TYPE_SIZE |
38
|
0
|
|
|
0
|
0
|
|
sub size { shift->{size} } |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
# TYPE_ALIGN |
41
|
0
|
|
|
0
|
0
|
|
sub align { shift->{algn} } |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
# 't' for a type object code. |
44
|
|
|
|
|
|
|
# DEFTREECODE (VOID_TYPE, "void_type", 't', 0) /* The void type in C */ |
45
|
1
|
|
|
1
|
|
7
|
package GCC::Node::void_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
101
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
# DEFTREECODE (INTEGER_TYPE, "integer_type", 't', 0) |
48
|
|
|
|
|
|
|
package GCC::Node::integer_type; |
49
|
1
|
|
|
1
|
|
6
|
use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5735
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
# TYPE_PRECISION |
52
|
0
|
|
|
0
|
|
|
sub precision { shift->{prec} } |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
# TREE_UNSIGNED |
55
|
0
|
|
|
0
|
|
|
sub unsigned { shift->{unsigned} } |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
# MIN_VALUE |
58
|
0
|
|
|
0
|
|
|
sub min { shift->{min} } |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
# MAX_VALUE |
61
|
0
|
|
|
0
|
|
|
sub max { shift->{max} } |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
# DEFTREECODE (REAL_TYPE, "real_type", 't', 0) |
64
|
|
|
|
|
|
|
package GCC::Node::real_type; |
65
|
1
|
|
|
1
|
|
13
|
use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
334
|
|
66
|
|
|
|
|
|
|
|
67
|
0
|
|
|
0
|
|
|
sub precision { shift->{prec} } |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
# DEFTREECODE (COMPLEX_TYPE, "complex_type", 't', 0) |
70
|
1
|
|
|
1
|
|
6
|
package GCC::Node::complex_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
92
|
|
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
# DEFTREECODE (VECTOR_TYPE, "vector_type", 't', 0) |
73
|
1
|
|
|
1
|
|
7
|
package GCC::Node::vector_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
720
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
# DEFTREECODE (ENUMERAL_TYPE, "enumeral_type", 't', 0) |
76
|
|
|
|
|
|
|
package GCC::Node::enumeral_type; |
77
|
1
|
|
|
1
|
|
7
|
use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
214
|
|
78
|
|
|
|
|
|
|
|
79
|
0
|
|
|
0
|
|
|
sub code { 'enum' } |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
# TYPE_PRECISION |
82
|
0
|
|
|
0
|
|
|
sub precision { shift->{prec} } |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
# TREE_UNSIGNED |
85
|
0
|
|
|
0
|
|
|
sub unsigned { shift->{unsigned} } |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
# MIN_VALUE |
88
|
0
|
|
|
0
|
|
|
sub min { shift->{min} } |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
# MAX_VALUE |
91
|
0
|
|
|
0
|
|
|
sub max { shift->{max} } |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
# TYPE_VALUES |
94
|
0
|
|
|
0
|
|
|
sub values { shift->{csts} } |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
# DEFTREECODE (BOOLEAN_TYPE, "boolean_type", 't', 0) |
97
|
1
|
|
|
1
|
|
7
|
package GCC::Node::boolean_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
102
|
|
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
# DEFTREECODE (CHAR_TYPE, "char_type", 't', 0) |
100
|
1
|
|
|
1
|
|
5
|
package GCC::Node::char_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
88
|
|
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
# DEFTREECODE (POINTER_TYPE, "pointer_type", 't', 0) |
103
|
|
|
|
|
|
|
package GCC::Node::pointer_type; |
104
|
1
|
|
|
1
|
|
5
|
use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
601
|
|
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
# To allow sharing pointer_type and reference_type |
107
|
0
|
|
|
0
|
|
|
sub thingy { '*' } |
108
|
|
|
|
|
|
|
|
109
|
0
|
|
|
0
|
|
|
sub type { shift->{ptd} } |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
# TYPE_PTRMEM_P |
112
|
0
|
|
|
0
|
|
|
sub ptrmem { shift->{ptrmem} } |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
# TYPE_PTRMEM_POINTED_TO_TYPE |
115
|
0
|
|
|
0
|
|
|
sub ptd { shift->{ptd} } |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
# TYPE_PTRMEM_CLASS_TYPE |
118
|
0
|
|
|
0
|
|
|
sub class { shift->{cls} } |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
# DEFTREECODE (OFFSET_TYPE, "offset_type", 't', 0) |
121
|
1
|
|
|
1
|
|
7
|
package GCC::Node::offset_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
108
|
|
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
# DEFTREECODE (REFERENCE_TYPE, "reference_type", 't', 0) |
124
|
|
|
|
|
|
|
package GCC::Node::reference_type; |
125
|
1
|
|
|
1
|
|
5
|
use base qw(GCC::Node::pointer_type); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
20875
|
|
126
|
|
|
|
|
|
|
|
127
|
0
|
|
|
0
|
|
|
sub thingy { '&' } |
128
|
|
|
|
|
|
|
|
129
|
0
|
|
|
0
|
|
|
sub type { shift->{refd} } |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
# DEFTREECODE (METHOD_TYPE, "method_type", 't', 0) |
132
|
|
|
|
|
|
|
package GCC::Node::method_type; |
133
|
1
|
|
|
1
|
|
13
|
use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
168
|
|
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
# TYPE_METHOD_BASETYPE |
136
|
0
|
|
|
0
|
|
|
sub class { shift->{clas} } |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
# TREE_TYPE |
139
|
0
|
|
|
0
|
|
|
sub retn { shift->{retn} } |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
# TREE_ARG_TYPES |
142
|
0
|
|
|
0
|
|
|
sub parms { shift->{prms} } |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
# DEFTREECODE (FILE_TYPE, "file_type", 't', 0) |
145
|
1
|
|
|
1
|
|
6
|
package GCC::Node::file_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
83
|
|
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
# DEFTREECODE (ARRAY_TYPE, "array_type", 't', 0) |
148
|
|
|
|
|
|
|
package GCC::Node::array_type; |
149
|
1
|
|
|
1
|
|
7
|
use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
120
|
|
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
# TREE_TYPE |
152
|
0
|
|
|
0
|
|
|
sub elements { shift->{elts} } |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
# TYPE_DOMAIN |
155
|
0
|
|
|
0
|
|
|
sub domain { shift->{domn} } |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
# DEFTREECODE (SET_TYPE, "set_type", 't', 0) |
158
|
1
|
|
|
1
|
|
6
|
package GCC::Node::set_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
96
|
|
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
# DEFTREECODE (RECORD_TYPE, "record_type", 't', 0) |
161
|
|
|
|
|
|
|
package GCC::Node::record_type; |
162
|
1
|
|
|
1
|
|
6
|
use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
29
|
|
|
1
|
|
|
|
|
736
|
|
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
# TREE_CODE |
165
|
0
|
|
|
0
|
|
|
sub code { 'struct' } |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
# TYPE_FIELDS |
168
|
0
|
|
|
0
|
|
|
sub fields { shift->{flds} } |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
# TYPE_METHODS |
171
|
0
|
|
|
0
|
|
|
sub methods { shift->{fncs} } |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
# TYPE_BINFO |
174
|
0
|
|
|
0
|
|
|
sub binfo { shift->{binf} } |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
# TYPE_PTRMEMFUNC_P |
177
|
0
|
|
|
0
|
|
|
sub ptrmemfunc { shift->{ptrmem} } |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
# TYPE_PTRMEM_POINTED_TO_TYPE |
180
|
0
|
|
|
0
|
|
|
sub ptd { shift->{ptd} } |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
# TYPE_PTRMEM_CLASS_TYPE |
183
|
0
|
|
|
0
|
|
|
sub class { shift->{cls} } |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
# TYPE_VFIELD |
186
|
0
|
|
|
0
|
|
|
sub vfield { shift->{vfld} } |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
# CLASSTYPE_TEMPLATE_SPECIALIZATION |
189
|
0
|
|
|
0
|
|
|
sub specialization { shift->{spec} } |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
# BINFO_BASETYPE |
192
|
0
|
|
|
0
|
|
|
sub base { shift->{base} } |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
# DEFTREECODE (UNION_TYPE, "union_type", 't', 0) /* C union type */ |
196
|
|
|
|
|
|
|
package GCC::Node::union_type; |
197
|
1
|
|
|
1
|
|
7
|
use base qw(GCC::Node::record_type); |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
872
|
|
198
|
|
|
|
|
|
|
|
199
|
0
|
|
|
0
|
|
|
sub code { 'union' } |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
# DEFTREECODE (QUAL_UNION_TYPE, "qual_union_type", 't', 0) |
202
|
1
|
|
|
1
|
|
7
|
package GCC::Node::qual_union_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
104
|
|
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
# DEFTREECODE (FUNCTION_TYPE, "function_type", 't', 0) |
205
|
|
|
|
|
|
|
package GCC::Node::function_type; |
206
|
1
|
|
|
1
|
|
5
|
use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
120
|
|
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
# TREE_TYPE |
209
|
0
|
|
|
0
|
|
|
sub retn { shift->{retn} } |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
# TYPE_ARG_TYPES |
212
|
0
|
|
|
0
|
|
|
sub parms { shift->{prms} } |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
# DEFTREECODE (LANG_TYPE, "lang_type", 't', 0) |
215
|
1
|
|
|
1
|
|
6
|
package GCC::Node::lang_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
97
|
|
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
# DEFTREECODE (TEMPLATE_TYPE_PARM, "template_type_parm", 't', 0) |
218
|
1
|
|
|
1
|
|
5
|
package GCC::Node::template_type_parm; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
87
|
|
219
|
|
|
|
|
|
|
# DEFTREECODE (TEMPLATE_TEMPLATE_PARM, "template_template_parm", 't', 0) |
220
|
1
|
|
|
1
|
|
5
|
package GCC::Node::template_template_parm; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
74
|
|
221
|
|
|
|
|
|
|
# DEFTREECODE (BOUND_TEMPLATE_TEMPLATE_PARM, "bound_template_template_parm", 't', 0) |
222
|
1
|
|
|
1
|
|
4
|
package GCC::Node::bound_template_template_parm; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
280
|
|
223
|
|
|
|
|
|
|
# DEFTREECODE (TYPENAME_TYPE, "typename_type", 't', 0) |
224
|
1
|
|
|
1
|
|
6
|
package GCC::Node::typename_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
78
|
|
225
|
|
|
|
|
|
|
# DEFTREECODE (UNBOUND_CLASS_TEMPLATE, "unbound_class_template", 't', 0) |
226
|
1
|
|
|
1
|
|
11
|
package GCC::Node::unbound_class_template; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
72
|
|
227
|
|
|
|
|
|
|
# DEFTREECODE (TYPEOF_TYPE, "typeof_type", 't', 0) |
228
|
1
|
|
|
1
|
|
4
|
package GCC::Node::typeof_type; use base qw(GCC::Node::Type); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
77
|
|
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
# vim:set shiftwidth=4 softtabstop=4: |
231
|
|
|
|
|
|
|
1; |