Commit d5a16cd6 authored by Matthias Braun's avatar Matthias Braun
Browse files

remove unused tail_call attribute from Call

parent 045e85c5
......@@ -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;
......
......@@ -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);
}
......
......@@ -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. */
......
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment