Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
f0e275de
Commit
f0e275de
authored
Nov 17, 2010
by
Matthias Braun
Browse files
add entity_has_ld_ident function
[r28141]
parent
5c258dfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/typerep.h
View file @
f0e275de
...
...
@@ -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
);
...
...
ir/tr/entity.c
View file @
f0e275de
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment