X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fcgana.c;h=dd06f0c971039794f382481e64d1b00befa205f7;hb=c25b0f5781313f72027722783ce6286978bdd757;hp=3e68938506f2dcbfe4934306e923c115f7cdad86;hpb=cf79ddfe6713891acdc41aa3ecd5f5a61034ee94;p=libfirm diff --git a/ir/ana/cgana.c b/ir/ana/cgana.c index 3e6893850..dd06f0c97 100644 --- a/ir/ana/cgana.c +++ b/ir/ana/cgana.c @@ -487,8 +487,8 @@ static void add_method_address_intitialzer(ir_initializer_t *initializer, ir_node *n = initializer->consti.value; /* let's check if it's the address of a function */ - if (is_SymConst_addr_ent(n)) { - ir_entity *ent = get_SymConst_entity(n); + if (is_Global(n)) { + ir_entity *ent = get_Global_entity(n); if (is_Method_type(get_entity_type(ent))) eset_insert(set, ent); @@ -544,8 +544,8 @@ static void add_method_address(ir_entity *ent, eset *set) /* let's check if it's the address of a function */ n = get_atomic_ent_value(ent); - if (is_SymConst_addr_ent(n)) { - ent = get_SymConst_entity(n); + if (is_Global(n)) { + ent = get_Global_entity(n); if (is_Method_type(get_entity_type(ent))) eset_insert(set, ent); @@ -555,8 +555,8 @@ static void add_method_address(ir_entity *ent, eset *set) n = get_compound_ent_value(ent, i); /* let's check if it's the address of a function */ - if (is_SymConst_addr_ent(n)) { - ir_entity *ent = get_SymConst_entity(n); + if (is_Global(n)) { + ir_entity *ent = get_Global_entity(n); if (is_Method_type(get_entity_type(ent))) eset_insert(set, ent);