}
{
bp_ident_t key, *elem;
- entity *ent = get_irg_entity(irg);
+ ir_entity *ent = get_irg_entity(irg);
if (! ent)
return;
* @param ctx the hook context
* @param ent the newly created entity
*/
-static void dbg_new_entity(void *ctx, entity *ent)
+static void dbg_new_entity(void *ctx, ir_entity *ent)
{
{
bp_ident_t key, *elem;
long nr; /**< the number that is searched for */
const char *name; /**< the name that is searched for */
} u;
- entity *res; /**< the result */
+ ir_entity *res; /**< the result */
} find_env_t;
/**
* Type-walker: Find an entity with given number.
*/
static void check_ent_nr(type_or_ent *tore, void *ctx) {
- entity *ent = (entity *)tore;
+ ir_entity *ent = (ir_entity *)tore;
find_env_t *env = ctx;
if (is_entity(ent))
* Type-walker: Find an entity with given name.
*/
static void check_ent_name(type_or_ent *tore, void *ctx) {
- entity *ent = (entity *)tore;
+ ir_entity *ent = (ir_entity *)tore;
find_env_t *env = ctx;
if (is_entity(ent))
/**
* Find a firm entity by its number.
*/
-static entity *find_entity_nr(long nr) {
+static ir_entity *find_entity_nr(long nr) {
find_env_t env;
env.u.nr = nr;
/**
* Find a firm entity by its name.
*/
-static entity *find_entity_name(const char *name) {
+static ir_entity *find_entity_name(const char *name) {
find_env_t env;
env.u.name = name;
ident *id = (ident *)env;
if (is_entity(tore)) {
- entity *ent = (entity *)tore;
+ ir_entity *ent = (ir_entity *)tore;
if (is_method_entity(ent)) {
if (get_entity_ident(ent) == id) {
ident *id = (ident *)env;
if (is_entity(tore)) {
- entity *ent = (entity *)tore;
+ ir_entity *ent = (ir_entity *)tore;
if (is_method_entity(ent)) {
if (get_entity_ld_ident(ent) == id) {