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
a7da4e30
Commit
a7da4e30
authored
Apr 02, 2009
by
Moritz Kroll
Browse files
Renamed attr.builtin.builtin_tp to attr.builtin.type
[r25773]
parent
853027b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/ir/ircons.c
View file @
a7da4e30
...
...
@@ -508,7 +508,7 @@ new_bd_Builtin(dbg_info *db, ir_node *block, ir_node *store,
assert
((
get_unknown_type
()
==
tp
)
||
is_Method_type
(
tp
));
res
->
attr
.
builtin
.
exc
.
pin_state
=
op_pin_state_pinned
;
res
->
attr
.
builtin
.
kind
=
kind
;
res
->
attr
.
builtin
.
builtin_tp
=
tp
;
res
->
attr
.
builtin
.
type
=
tp
;
res
=
optimize_node
(
res
);
IRN_VRFY_IRG
(
res
,
irg
);
return
res
;
...
...
ir/ir/irnode.c
View file @
a7da4e30
...
...
@@ -1430,14 +1430,14 @@ set_Builtin_param(ir_node *node, int pos, ir_node *param) {
ir_type
*
get_Builtin_type
(
ir_node
*
node
)
{
assert
(
is_Builtin
(
node
));
return
node
->
attr
.
builtin
.
builtin_tp
=
skip_tid
(
node
->
attr
.
builtin
.
builtin_tp
);
return
node
->
attr
.
builtin
.
type
=
skip_tid
(
node
->
attr
.
builtin
.
type
);
}
void
set_Builtin_type
(
ir_node
*
node
,
ir_type
*
tp
)
{
assert
(
is_Builtin
(
node
));
assert
((
get_unknown_type
()
==
tp
)
||
is_Method_type
(
tp
));
node
->
attr
.
builtin
.
builtin_tp
=
tp
;
node
->
attr
.
builtin
.
type
=
tp
;
}
/* Returns a human readable string for the ir_builtin_kind. */
...
...
ir/ir/irtypes.h
View file @
a7da4e30
...
...
@@ -198,7 +198,7 @@ typedef struct {
typedef
struct
{
except_attr
exc
;
/**< the exception attribute. MUST be the first one. */
ir_builtin_kind
kind
;
/**< kind of the called builtin procedure */
ir_type
*
builtin_tp
;
/**< type of called builtin procedure */
ir_type
*
type
;
/**< type of called builtin procedure */
}
builtin_attr
;
/** Alloc attributes. */
...
...
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