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
e78f164c
Commit
e78f164c
authored
Aug 06, 2007
by
Michael Beck
Browse files
fixed comment
used is_SymConst() [r15481]
parent
23de0b55
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/cgana.c
View file @
e78f164c
...
...
@@ -510,26 +510,22 @@ 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
(
get_irn_op
(
n
)
==
op_SymConst
)
{
if
(
get_SymConst_kind
(
n
)
==
symconst_addr_ent
)
{
ent
=
get_SymConst_entity
(
n
);
if
(
is_SymConst
(
n
)
&&
get_SymConst_kind
(
n
)
==
symconst_addr_ent
)
{
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
);
}
}
else
{
for
(
i
=
get_compound_ent_n_values
(
ent
)
-
1
;
i
>=
0
;
--
i
)
{
n
=
get_compound_ent_value
(
ent
,
i
);
/* let's check if it's the address of a function */
if
(
get_irn_op
(
n
)
==
op_SymConst
)
{
if
(
get_SymConst_kind
(
n
)
==
symconst_addr_ent
)
{
ir_entity
*
ent
=
get_SymConst_entity
(
n
);
if
(
is_SymConst
(
n
)
&&
get_SymConst_kind
(
n
)
==
symconst_addr_ent
)
{
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
);
}
}
}
...
...
@@ -575,7 +571,7 @@ static ir_entity ** get_free_methods(void)
}
}
/* insert all methods th
e initializes
global variables */
/* insert all methods th
at are used in
global variables
initializers
*/
glob
=
get_glob_type
();
for
(
i
=
get_class_n_members
(
glob
)
-
1
;
i
>=
0
;
--
i
)
{
ent
=
get_class_member
(
glob
,
i
);
...
...
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