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
3c650157
Commit
3c650157
authored
Dec 21, 2004
by
Michael Beck
Browse files
removed C99 constructs
[r4681]
parent
5249237f
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/ana/cgana.c
View file @
3c650157
...
...
@@ -137,6 +137,8 @@ static entity *get_inherited_methods_implementation(entity *inh_meth) {
*/
static
void
collect_impls
(
entity
*
method
,
eset
*
set
,
int
*
size
,
bool
*
open
)
{
int
i
;
entity
*
impl
;
#if 0
if (get_entity_peculiarity(method) == peculiarity_existent) {
if ((get_entity_visibility(method) == visibility_external_allocated)
...
...
@@ -188,13 +190,13 @@ static void collect_impls(entity *method, eset *set, int *size, bool *open) {
remember that there are more methods called. */
/* @@@ We could also add unknown_entity, or the entities with the
unknown irgs. The first case would result in the exact same
behavio
u
r: all unknown irgs are represented by the one and only
behavior: all unknown irgs are represented by the one and only
unknown entity. If we add all entities, we known the number of
entities possibly called, and whether there are real unknown
entities, i.e, such not represented in the type description.
This would be better for an analys
e
s: it could rule out more
This would be better for an analys
i
s: it could rule out more
cases. */
entity
*
impl
=
method
;
impl
=
method
;
if
(
get_entity_peculiarity
(
method
)
==
peculiarity_inherited
)
impl
=
get_inherited_methods_implementation
(
method
);
...
...
@@ -253,7 +255,7 @@ static entity ** get_impl_methods(entity * method) {
return
arr
;
}
/** Analy
s
e address computations.
/** Analy
z
e address computations.
*
* - If the node is a SymConst(name) replace it by SymConst(ent) if possible.
* - If the node is a Sel:
...
...
@@ -274,8 +276,10 @@ static void sel_methods_walker(ir_node * node, void *env) {
if
(
entry
!=
NULL
)
{
/* Method is declared in the compiled code */
entity
*
ent
=
entry
->
value
;
if
(
get_opt_normalize
()
&&
(
get_entity_visibility
(
ent
)
!=
visibility_external_allocated
))
{
/* Meth. is defined */
ir_node
*
new_node
;
set_irg_current_block
(
current_ir_graph
,
get_nodes_block
(
node
));
ir_node
*
new_node
=
copy_const_value
(
get_atomic_ent_value
(
ent
));
new_node
=
copy_const_value
(
get_atomic_ent_value
(
ent
));
DBG_OPT_CSTEVAL
(
node
,
new_node
);
...
...
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