Commit 7bf3ac86 authored by Michael Beck's avatar Michael Beck
Browse files

use the new backend_marked flag

[r14727]
parent 0f37c776
......@@ -610,7 +610,7 @@ static void emit_be_Call(arm_emit_env_t *env, const ir_node *irn) {
be_emit_cstring(env->emit, "\tbl ");
if (ent) {
mark_entity_visited(ent);
set_entity_backend_marked(ent, 1);
be_emit_ident(env->emit, get_entity_ld_ident(ent));
} else {
arm_emit_source_register(env, irn, be_pos_Call_ptr);
......
......@@ -946,7 +946,7 @@ static ident *get_sc_ident(ir_node *symc) {
case symconst_addr_ent:
ent = get_SymConst_entity(symc);
mark_entity_visited(ent);
set_entity_backend_marked(ent, 1);
return get_entity_ld_ident(ent);
default:
......
......@@ -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_visited(ent) ||
get_entity_visibility(ent) != visibility_external_allocated) {
if (is_entity_backend_marked(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);
......
......@@ -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_visited(ent);
set_entity_backend_marked(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_visited(ent);
set_entity_backend_marked(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, "\tcall ");
if (ent) {
mark_entity_visited(ent);
set_entity_backend_marked(ent, 1);
be_emit_string(env, get_entity_ld_name(ent));
} else {
be_emit_char(env, '*');
......
......@@ -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_visited(ent);
set_entity_backend_marked(ent, 1);
if (! is_direct_entity(ent))
pset_insert_ptr(symbol_set, ent);
}
......
......@@ -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_visited(call_ent);
set_entity_backend_marked(call_ent, 1);
be_emit_irprintf(env->emit, "\tbl %s", get_entity_ld_name(call_ent));
} else {
be_emit_cstring(env->emit, "\tmtlr ");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment