projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
be: remove unused reg_class_for_mode callback
[libfirm]
/
ir
/
ana
/
cgana.c
diff --git
a/ir/ana/cgana.c
b/ir/ana/cgana.c
index
7a5e26e
..
e70ece6
100644
(file)
--- a/
ir/ana/cgana.c
+++ b/
ir/ana/cgana.c
@@
-22,7
+22,6
@@
* @brief Intraprozedural analyses to estimate the call graph.
* @author Hubert Schmid
* @date 09.06.2002
* @brief Intraprozedural analyses to estimate the call graph.
* @author Hubert Schmid
* @date 09.06.2002
- * @version $Id$
* @brief
* Interprocedural analysis to estimate the calling relation.
*
* @brief
* Interprocedural analysis to estimate the calling relation.
*
@@
-465,8
+464,8
@@
static void add_method_address_inititializer(ir_initializer_t *initializer,
n = initializer->consti.value;
/* let's check if it's the address of a function */
n = initializer->consti.value;
/* let's check if it's the address of a function */
- if (is_
Global
(n)) {
- ir_entity *ent = get_
Global
_entity(n);
+ if (is_
SymConst_addr_ent
(n)) {
+ ir_entity *ent = get_
SymConst
_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);
@@
-516,8
+515,8
@@
static void add_method_address(ir_entity *ent, eset *set)
ir_node *irn = get_compound_ent_value(ent, i);
/* let's check if it's the address of a function */
ir_node *irn = get_compound_ent_value(ent, i);
/* let's check if it's the address of a function */
- if (is_
Global
(irn)) {
- ir_entity *ent2 = get_
Global
_entity(irn);
+ if (is_
SymConst_addr_ent
(irn)) {
+ ir_entity *ent2 = get_
SymConst
_entity(irn);
if (is_Method_type(get_entity_type(ent2)))
eset_insert(set, ent2);
if (is_Method_type(get_entity_type(ent2)))
eset_insert(set, ent2);