projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5f4e923
)
methods need no offset
author
Eduard Frank
<s_frank@ipd.info.uni-karlsruhe.de>
Tue, 15 Mar 2011 14:46:33 +0000
(15:46 +0100)
committer
Matthias Braun
<matze@braunis.de>
Wed, 16 Mar 2011 17:52:44 +0000
(18:52 +0100)
ir/tr/type.c
patch
|
blob
|
history
diff --git
a/ir/tr/type.c
b/ir/tr/type.c
index
87050c5
..
d522748
100644
(file)
--- a/
ir/tr/type.c
+++ b/
ir/tr/type.c
@@
-364,11
+364,10
@@
void set_type_state(ir_type *tp, ir_type_state state)
if (tp != get_glob_type()) {
size_t n_mem = get_class_n_members(tp);
for (i = 0; i < n_mem; i++) {
if (tp != get_glob_type()) {
size_t n_mem = get_class_n_members(tp);
for (i = 0; i < n_mem; i++) {
- assert(get_entity_offset(get_class_member(tp, i)) > -1);
- /* TR ??
- assert(is_Method_type(get_entity_type(get_class_member(tp, i))) ||
- (get_entity_allocation(get_class_member(tp, i)) == allocation_automatic));
- */
+ ir_entity *entity = get_class_member(tp, i);
+ if (is_Method_type(get_entity_type(entity)))
+ continue;
+ assert(get_entity_offset(entity) > -1);
}
}
break;
}
}
break;
@@
-378,12
+377,8
@@
void set_type_state(ir_type *tp, ir_type_state state)
}
break;
case tpo_union:
}
break;
case tpo_union:
- /* ?? */
break;
case tpo_array:
break;
case tpo_array:
- /* ??
- Check order?
- Assure that only innermost dimension is dynamic? */
break;
case tpo_enumeration: {
#ifndef NDEBUG
break;
case tpo_enumeration: {
#ifndef NDEBUG
@@
-398,7
+393,7
@@
void set_type_state(ir_type *tp, ir_type_state state)
break;
}
default: break;
break;
}
default: break;
- }
/* switch (tp) */
+ }
}
if (state == layout_fixed)
tp->flags |= tf_layout_fixed;
}
if (state == layout_fixed)
tp->flags |= tf_layout_fixed;