# define _ENTITY_T_H_
#include "firm_common_t.h"
+#include "firm_config.h"
# include "entity.h"
# include "typegmod.h"
type *tp; /**< The type this path belongs to. */
int len; /**< length of the path */
int *arr_indicees; /**< List of array indeces. To compute position of
- array elements */
+ array elements */
entity *nodes[1]; /**< List of entities of length len to express the
- access path. */
+ access path. */
};
/** the type of an entity */
}
/**
- * @todo why peculiarity only for methods
+ * @todo Why peculiarity only for methods?
+ * Good question. Originally, there were only description and
+ * existent. The thought was, what sense does it make to
+ * describe a field? With inherited the situation changed. So
+ * I removed the assertion. GL, 28.2.05
*/
static INLINE void
__set_entity_peculiarity(entity *ent, peculiarity pec) {
assert(ent && ent->kind == k_entity);
/* @@@ why peculiarity only for methods? */
- assert(is_method_type(ent->type));
+ //assert(is_Method_type(ent->type));
ent->peculiarity = pec;
}
static INLINE ir_graph *
__get_entity_irg(const entity *ent) {
assert(ent && ent->kind == k_entity);
- assert(ent == unknown_entity || is_method_type(ent->type));
+ assert(ent == unknown_entity || is_Method_type(ent->type));
if (!get_visit_pseudo_irgs() && ent->irg && is_pseudo_ir_graph(ent->irg))
return NULL;
return ent->irg;