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
7bf3ac86
Commit
7bf3ac86
authored
Jun 22, 2007
by
Michael Beck
Browse files
use the new backend_marked flag
[r14727]
parent
0f37c776
Changes
6
Hide whitespace changes
Inline
Side-by-side
ir/be/arm/arm_emitter.c
View file @
7bf3ac86
...
...
@@ -610,7 +610,7 @@ static void emit_be_Call(arm_emit_env_t *env, const ir_node *irn) {
be_emit_cstring
(
env
->
emit
,
"
\t
bl "
);
if
(
ent
)
{
mark
_entity_
visit
ed
(
ent
);
set
_entity_
backend_mark
ed
(
ent
,
1
);
be_emit_ident
(
env
->
emit
,
get_entity_ld_ident
(
ent
));
}
else
{
arm_emit_source_register
(
env
,
irn
,
be_pos_Call_ptr
);
...
...
ir/be/arm/arm_transform.c
View file @
7bf3ac86
...
...
@@ -946,7 +946,7 @@ static ident *get_sc_ident(ir_node *symc) {
case
symconst_addr_ent
:
ent
=
get_SymConst_entity
(
symc
);
mark
_entity_
visit
ed
(
ent
);
set
_entity_
backend_mark
ed
(
ent
,
1
);
return
get_entity_ld_ident
(
ent
);
default:
...
...
ir/be/begnuas.c
View file @
7bf3ac86
...
...
@@ -723,11 +723,11 @@ static void be_gas_dump_globals(ir_type *gt, be_gas_decl_env_t *env,
int
i
,
n
=
get_compound_n_members
(
gt
);
waitq
*
worklist
=
new_waitq
();
if
(
only_emit_marked
)
{
if
(
only_emit_marked
)
{
for
(
i
=
0
;
i
<
n
;
i
++
)
{
ir_entity
*
ent
=
get_compound_member
(
gt
,
i
);
if
(
entity_
visit
ed
(
ent
)
||
get_entity_visibility
(
ent
)
!=
visibility_external_allocated
)
{
if
(
is_
entity_
backend_mark
ed
(
ent
)
||
get_entity_visibility
(
ent
)
!=
visibility_external_allocated
)
{
waitq_put
(
worklist
,
ent
);
mark_entity_visited
(
ent
);
}
...
...
@@ -743,7 +743,7 @@ static void be_gas_dump_globals(ir_type *gt, be_gas_decl_env_t *env,
env
->
worklist
=
worklist
;
while
(
!
waitq_empty
(
worklist
))
{
while
(
!
waitq_empty
(
worklist
))
{
ir_entity
*
ent
=
waitq_get
(
worklist
);
dump_global
(
env
,
ent
,
emit_commons
);
...
...
ir/be/ia32/ia32_emitter.c
View file @
7bf3ac86
...
...
@@ -273,7 +273,7 @@ void ia32_emit_immediate(ia32_emit_env_t *env, const ir_node *node)
return
;
case
ia32_ImmSymConst
:
ent
=
get_ia32_Immop_symconst
(
node
);
mark
_entity_
visit
ed
(
ent
);
set
_entity_
backend_mark
ed
(
ent
,
1
);
id
=
get_entity_ld_ident
(
ent
);
be_emit_ident
(
env
,
id
);
return
;
...
...
@@ -567,7 +567,7 @@ void ia32_emit_am(ia32_emit_env_t *env, const ir_node *node) {
if
(
ent
!=
NULL
)
{
ident
*
id
;
mark
_entity_
visit
ed
(
ent
);
set
_entity_
backend_mark
ed
(
ent
,
1
);
id
=
get_entity_ld_ident
(
ent
);
if
(
is_ia32_am_sc_sign
(
node
))
be_emit_char
(
env
,
'-'
);
...
...
@@ -1744,7 +1744,7 @@ void emit_be_Call(ia32_emit_env_t *env, const ir_node *node) {
be_emit_cstring
(
env
,
"
\t
call "
);
if
(
ent
)
{
mark
_entity_
visit
ed
(
ent
);
set
_entity_
backend_mark
ed
(
ent
,
1
);
be_emit_string
(
env
,
get_entity_ld_name
(
ent
));
}
else
{
be_emit_char
(
env
,
'*'
);
...
...
ir/be/ppc32/bearch_ppc32.c
View file @
7bf3ac86
...
...
@@ -643,7 +643,7 @@ static void ppc32_collect_symconsts_walk(ir_node *node, void *env) {
if
(
is_SymConst
(
node
))
{
ir_entity
*
ent
=
get_SymConst_entity
(
node
);
mark
_entity_
visit
ed
(
ent
);
set
_entity_
backend_mark
ed
(
ent
,
1
);
if
(
!
is_direct_entity
(
ent
))
pset_insert_ptr
(
symbol_set
,
ent
);
}
...
...
ir/be/ppc32/ppc32_emitter.c
View file @
7bf3ac86
...
...
@@ -259,7 +259,7 @@ static void emit_be_Call(ppc32_emit_env_t *env, const ir_node *irn) {
ir_entity
*
call_ent
=
be_Call_get_entity
(
irn
);
if
(
call_ent
)
{
mark
_entity_
visit
ed
(
call_ent
);
set
_entity_
backend_mark
ed
(
call_ent
,
1
);
be_emit_irprintf
(
env
->
emit
,
"
\t
bl %s"
,
get_entity_ld_name
(
call_ent
));
}
else
{
be_emit_cstring
(
env
->
emit
,
"
\t
mtlr "
);
...
...
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