summaryrefslogtreecommitdiffhomepage
path: root/ir/tr
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/tr
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/tr')
-rw-r--r--ir/tr/type.c1
-rw-r--r--ir/tr/type_t.h27
2 files changed, 4 insertions, 24 deletions
diff --git a/ir/tr/type.c b/ir/tr/type.c
index 202c0b3..1fd65bd 100644
--- a/ir/tr/type.c
+++ b/ir/tr/type.c
@@ -547,7 +547,6 @@ ir_type *clone_type_method(ir_type *const tp, bool const is_variadic, mtp_additi
set_type_dbg_info(res, db);
res->flags = tp->flags;
- res->higher_type = tp->higher_type;
res->size = tp->size;
res->attr.method.n_params = n_params;
res->attr.method.params = XMALLOCN(ir_type*, n_params);
diff --git a/ir/tr/type_t.h b/ir/tr/type_t.h
index f9bf2de..17ed18d 100644
--- a/ir/tr/type_t.h
+++ b/ir/tr/type_t.h
@@ -86,12 +86,11 @@ typedef struct {
typedef enum type_flags {
tf_none = 0, /**< No flags. */
tf_compound = 1U << 0, /**< Set if type is a compound type. */
- tf_lowered_type = 1U << 1, /**< Set if this is a lowered type. */
- tf_layout_fixed = 1U << 2, /**< Set if the layout of a type is fixed */
+ tf_layout_fixed = 1U << 1, /**< Set if the layout of a type is fixed */
- tf_frame_type = 1U << 3, /**< Set if this is a frame type. */
- tf_info = 1U << 4, /**< infos (for example constructor, destructor pointers), all members are anonymous */
- tf_lowered_dw = 1U << 5, /**< hack to identify lowered doubleword params */
+ tf_frame_type = 1U << 2, /**< Set if this is a frame type. */
+ tf_info = 1U << 3, /**< infos (for example constructor, destructor pointers), all members are anonymous */
+ tf_lowered_dw = 1U << 4, /**< hack to identify lowered doubleword params */
} type_flags;
ENUM_BITSET(type_flags)
@@ -126,8 +125,6 @@ struct ir_type {
ir_visited_t visit; /**< visited counter for walks of the type information */
void *link; /**< holds temporary data - like in irnode_t.h */
type_dbg_info *dbi; /**< A pointer to information for debug support. */
- ir_type *higher_type; /**< link to highlevel type in case of lowered
- types */
long nr; /**< An unique number for each type. */
union {
compound_attr compound;
@@ -170,22 +167,6 @@ static inline ir_visited_t get_master_type_visited_(void)
return firm_type_visited;
}
-static inline int is_lowered_type(const ir_type *tp)
-{
- return tp->flags & tf_lowered_type;
-}
-
-static inline ir_type *get_higher_type(const ir_type *tp)
-{
- return tp->higher_type;
-}
-
-static inline void set_higher_type(ir_type *tp, ir_type *higher_type)
-{
- tp->flags |= tf_lowered_type;
- tp->higher_type = higher_type;
-}
-
static inline void *get_type_link_(const ir_type *tp)
{
assert(tp->kind == k_type);