summaryrefslogtreecommitdiffhomepage
path: root/ir/lower
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-07-11 08:10:41 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-09-18 22:06:32 +0200
commitf4f2fc2d1216f74de7c10961ebd180774f32a963 (patch)
tree029f84d9538d5196efb909bacf5da3b2c69b82d6 /ir/lower
parentae42d2179e5f1f3581ac7aef1bdfc91b4483f67d (diff)
tr: Remove the concept of 'higher type'.
A higher type was set in a few places, but not used otherwise.
Diffstat (limited to 'ir/lower')
-rw-r--r--ir/lower/lower_calls.c2
-rw-r--r--ir/lower/lower_dw.c1
-rw-r--r--ir/lower/lower_softfloat.c2
3 files changed, 0 insertions, 5 deletions
diff --git a/ir/lower/lower_calls.c b/ir/lower/lower_calls.c
index 735027a..fa47dda 100644
--- a/ir/lower/lower_calls.c
+++ b/ir/lower/lower_calls.c
@@ -199,8 +199,6 @@ static ir_type *lower_mtp(lowering_env_t const *const env, ir_type *mtp)
for (size_t i = 0; i < nn_ress; ++i)
set_method_res_type(lowered, i, results[i]);
- /* associate the lowered type with the original one for easier access */
- set_higher_type(lowered, mtp);
pmap_insert(lowered_mtps, mtp, lowered);
return lowered;
diff --git a/ir/lower/lower_dw.c b/ir/lower/lower_dw.c
index 31d33f3..de1b158 100644
--- a/ir/lower/lower_dw.c
+++ b/ir/lower/lower_dw.c
@@ -1625,7 +1625,6 @@ static ir_type *lower_mtp(ir_type *mtp)
set_method_res_type(res, n_res++, tp);
}
- set_higher_type(res, mtp);
set_type_link(res, mtp);
mark_type_visited(res);
diff --git a/ir/lower/lower_softfloat.c b/ir/lower/lower_softfloat.c
index 8debf91..0a2b4be 100644
--- a/ir/lower/lower_softfloat.c
+++ b/ir/lower/lower_softfloat.c
@@ -356,8 +356,6 @@ static ir_type *lower_method_type(ir_type *mtp)
set_method_res_type(res, i, rtp);
}
- set_higher_type(res, mtp);
-
pmap_insert(lowered_type, mtp, res);
return res;
}