summaryrefslogtreecommitdiffhomepage
path: root/ir/tr
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-06-26 19:39:01 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-06-27 06:09:18 +0200
commit149616cd7412acfb0e07d697ac1815f782771e38 (patch)
tree6d368c8524868e298fb3c227c09c4fc5eb3fe8b3 /ir/tr
parentf6330956c9f0bc787f1903bffa1700394527c742 (diff)
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.
Diffstat (limited to 'ir/tr')
-rw-r--r--ir/tr/type.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ir/tr/type.c b/ir/tr/type.c
index 17555b1..bf3e800 100644
--- a/ir/tr/type.c
+++ b/ir/tr/type.c
@@ -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)
{