Commit 01e81da9 authored by Matthias Braun's avatar Matthias Braun
Browse files

move VTABLE_NUM_NOT_SET constant to public header

[r27638]
parent fefcae4f
......@@ -357,6 +357,9 @@ FIRM_API void set_entity_link(ir_entity *ent, void *l);
FIRM_API ir_graph *get_entity_irg(const ir_entity *ent);
FIRM_API void set_entity_irg(ir_entity *ent, ir_graph *irg);
/** A reserved value for "not yet set". */
#define IR_VTABLE_NUM_NOT_SET ((unsigned)(-1))
/** Gets the entity vtable number. */
FIRM_API unsigned get_entity_vtable_number(const ir_entity *ent);
......
......@@ -97,7 +97,7 @@ ir_entity *new_d_entity(ir_type *owner, ident *name, ir_type *type,
current_ir_graph = rem;
res->linkage = IR_LINKAGE_CONSTANT;
res->attr.mtd_attr.irg_add_properties = mtp_property_inherited;
res->attr.mtd_attr.vtable_number = VTABLE_NUM_NOT_SET;
res->attr.mtd_attr.vtable_number = IR_VTABLE_NUM_NOT_SET;
res->attr.mtd_attr.param_access = NULL;
res->attr.mtd_attr.param_weight = NULL;
res->attr.mtd_attr.irg = NULL;
......
......@@ -78,9 +78,6 @@ typedef struct compound_ent_attr {
/**< paths corresponding to constant values. */
} compound_ent_attr;
/** A reserved value for "not yet set". */
#define VTABLE_NUM_NOT_SET ((unsigned)(-1))
/** The attributes for methods. */
typedef struct method_ent_attr {
ir_graph *irg; /**< The corresponding irg if known.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment