Commit 149616cd authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove the unused function 'find_pointer_type_to_type()'.

It was only used by the class casst optimization, which was removed almost four years ago.
parent f6330956
......@@ -1376,11 +1376,6 @@ FIRM_API ir_type *get_pointer_points_to_type(const ir_type *pointer);
/** Returns true if a type is a pointer type. */
FIRM_API int is_Pointer_type(const ir_type *pointer);
/** Returns the first pointer type that has as points_to tp.
* Not efficient: O(\#types).
* If not found returns firm_unknown_type. */
FIRM_API ir_type *find_pointer_type_to_type(ir_type *tp);
/** @} */
/**
......
......@@ -818,16 +818,6 @@ int (is_Pointer_type)(const ir_type *pointer)
return is_pointer_type_(pointer);
}
ir_type *find_pointer_type_to_type(ir_type *tp)
{
for (size_t i = 0, n = get_irp_n_types(); i < n; ++i) {
ir_type *found = get_irp_type(i);
if (is_Pointer_type(found) && get_pointer_points_to_type(found) == tp)
return (found);
}
return get_unknown_type();
}
ir_type *new_type_primitive(ir_mode *mode)
{
......
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