projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BugFix r19562: get_nodes_block(skip_Proj(get_irn_n(n,i))) is subtile
[libfirm]
/
ir
/
ana
/
cgana.c
diff --git
a/ir/ana/cgana.c
b/ir/ana/cgana.c
index
3e68938
..
dd06f0c
100644
(file)
--- 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 */
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);
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);
/* 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);
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 */
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);
if (is_Method_type(get_entity_type(ent)))
eset_insert(set, ent);