Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
f85fa8d0
Commit
f85fa8d0
authored
Nov 16, 2011
by
Matthias Braun
Browse files
add missing entries in set_default_get_type_attr
parent
3011d96c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode.c
View file @
f85fa8d0
...
...
@@ -1645,11 +1645,14 @@ static ir_type *get_Null_type(const ir_node *n)
void
firm_set_default_get_type_attr
(
unsigned
code
,
ir_op_ops
*
ops
)
{
switch
(
code
)
{
case
iro_Alloc
:
ops
->
get_type_attr
=
get_Alloc_type
;
break
;
case
iro_Builtin
:
ops
->
get_type_attr
=
get_Builtin_type
;
break
;
case
iro_Call
:
ops
->
get_type_attr
=
get_Call_type
;
break
;
case
iro_Cast
:
ops
->
get_type_attr
=
get_Cast_type
;
break
;
case
iro_CopyB
:
ops
->
get_type_attr
=
get_CopyB_type
;
break
;
case
iro_Free
:
ops
->
get_type_attr
=
get_Free_type
;
break
;
case
iro_InstOf
:
ops
->
get_type_attr
=
get_InstOf_type
;
break
;
case
iro_SymConst
:
ops
->
get_type_attr
=
get_SymConst_attr_type
;
break
;
case
iro_Call
:
ops
->
get_type_attr
=
get_Call_type
;
break
;
case
iro_Alloc
:
ops
->
get_type_attr
=
get_Alloc_type
;
break
;
case
iro_Free
:
ops
->
get_type_attr
=
get_Free_type
;
break
;
case
iro_Cast
:
ops
->
get_type_attr
=
get_Cast_type
;
break
;
default:
/* not allowed to be NULL */
if
(
!
ops
->
get_type_attr
)
...
...
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