Commit 964eae88 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

tr: Remove the redundant function has_entity_initializer().

Just use get_entity_initializer() instead.
parent 9130afeb
......@@ -543,9 +543,6 @@ FIRM_API ir_initializer_t *get_initializer_compound_value(
/** Sets the new style initializers of an entity. */
FIRM_API void set_entity_initializer(ir_entity *entity, ir_initializer_t *initializer);
/** Returns true, if an entity has new style initializers. */
FIRM_API int has_entity_initializer(const ir_entity *entity);
/** Returns the new style initializers of an entity. */
FIRM_API ir_initializer_t *get_entity_initializer(const ir_entity *entity);
......
......@@ -611,11 +611,6 @@ void set_entity_initializer(ir_entity *entity, ir_initializer_t *initializer)
check_entity_initializer(entity);
}
int has_entity_initializer(const ir_entity *entity)
{
return entity->initializer != NULL;
}
ir_initializer_t *get_entity_initializer(const ir_entity *entity)
{
return entity->initializer;
......
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