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
d5a16cd6
Commit
d5a16cd6
authored
Nov 14, 2011
by
Matthias Braun
Browse files
remove unused tail_call attribute from Call
parent
045e85c5
Changes
4
Show whitespace changes
Inline
Side-by-side
ir/ir/irdumptxt.c
View file @
d5a16cd6
...
...
@@ -203,8 +203,6 @@ void dump_irnode_to_file(FILE *F, ir_node *n)
}
break
;
case
iro_Call
:
{
ir_type
*
tp
=
get_Call_type
(
n
);
if
(
get_Call_tail_call
(
n
))
fprintf
(
F
,
" tail call
\n
"
);
ir_fprintf
(
F
,
" calling method of type %+F
\n
"
,
tp
);
if
(
get_unknown_type
()
!=
tp
)
{
size_t
i
;
...
...
ir/ir/iropt.c
View file @
d5a16cd6
...
...
@@ -6541,7 +6541,7 @@ static int node_cmp_attr_Call(const ir_node *a, const ir_node *b)
{
const
call_attr
*
pa
=
&
a
->
attr
.
call
;
const
call_attr
*
pb
=
&
b
->
attr
.
call
;
if
(
pa
->
type
!=
pb
->
type
||
pa
->
tail_call
!=
pb
->
tail_call
)
if
(
pa
->
type
!=
pb
->
type
)
return
1
;
return
node_cmp_exception
(
a
,
b
);
}
...
...
ir/ir/irtypes.h
View file @
d5a16cd6
...
...
@@ -259,7 +259,6 @@ typedef struct call_attr {
except_attr
exc
;
/**< the exception attribute. MUST be the first one. */
ir_type
*
type
;
/**< type of called procedure */
ir_entity
**
callee_arr
;
/**< result of callee analysis */
unsigned
tail_call
:
1
;
/**< if set, can be a tail call */
}
call_attr
;
/** Builtin attributes. */
...
...
scripts/ir_spec.py
View file @
d5a16cd6
...
...
@@ -267,12 +267,6 @@ class Call(Op):
name
=
"type"
,
comment
=
"type of the call (usually type of the called procedure)"
,
),
dict
(
type
=
"unsigned"
,
name
=
"tail_call"
,
# the tail call attribute can only be set by analysis
init
=
"0"
,
)
]
attr_struct
=
"call_attr"
pinned
=
"memory"
...
...
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