Commit f0e275de authored by Matthias Braun's avatar Matthias Braun
Browse files

add entity_has_ld_ident function

[r28141]
parent 5c258dfe
......@@ -110,7 +110,7 @@ typedef enum {
/**
* linkage specifies how the linker treats symbols
*/
typedef enum {
typedef enum ir_linkage {
IR_LINKAGE_DEFAULT = 0,
/**
* A symbol whose definition won't change in a program.
......@@ -251,6 +251,9 @@ FIRM_API void set_entity_ld_ident(ir_entity *ent, ident *ld_ident);
/** Returns the mangled name of the entity as a string. */
FIRM_API const char *get_entity_ld_name(const ir_entity *ent);
/** returns 1 if the entity has an ld_ident set explicitely */
FIRM_API int entity_has_ld_ident(const ir_entity *entity);
/** Returns the owner of the entity. */
FIRM_API ir_type *get_entity_owner(const ir_entity *ent);
......
......@@ -301,6 +301,11 @@ const char *(get_entity_ld_name)(const ir_entity *ent)
return _get_entity_ld_name(ent);
}
int entity_has_ld_ident(const ir_entity *entity)
{
return entity->ld_name != NULL;
}
ir_type *(get_entity_type)(const ir_entity *ent)
{
return _get_entity_type(ent);
......
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