projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use more IR_RESOURCE_TYPE_VISITED, remove pointless inc_master_type_visited calls
[libfirm]
/
ir
/
be
/
beabi.c
diff --git
a/ir/be/beabi.c
b/ir/be/beabi.c
index
e24bedf
..
75e43ff
100644
(file)
--- a/
ir/be/beabi.c
+++ b/
ir/be/beabi.c
@@
-2111,7
+2111,7
@@
static ir_entity *create_trampoline(be_main_env_t *be, ir_entity *method)
ir_type *parent = be->pic_trampolines_type;
ir_entity *ent = new_entity(parent, old_id, type);
set_entity_ld_ident(ent, id);
ir_type *parent = be->pic_trampolines_type;
ir_entity *ent = new_entity(parent, old_id, type);
set_entity_ld_ident(ent, id);
- set_entity_
linkage(ent, IR_LINKAGE_LOCAL
);
+ set_entity_
visibility(ent, ir_visibility_local
);
return ent;
}
return ent;
}
@@
-2139,7
+2139,7
@@
static ir_entity *create_pic_symbol(be_main_env_t *be, ir_entity *entity)
ir_type *parent = be->pic_symbols_type;
ir_entity *ent = new_entity(parent, old_id, type);
set_entity_ld_ident(ent, id);
ir_type *parent = be->pic_symbols_type;
ir_entity *ent = new_entity(parent, old_id, type);
set_entity_ld_ident(ent, id);
- set_entity_
linkage(ent, IR_LINKAGE_LOCAL
);
+ set_entity_
visibility(ent, ir_visibility_local
);
return ent;
}
return ent;
}
@@
-2162,7
+2162,7
@@
static ir_entity *get_pic_symbol(be_main_env_t *env, ir_entity *entity)
*/
static int can_address_relative(ir_entity *entity)
{
*/
static int can_address_relative(ir_entity *entity)
{
- return
!(get_entity_linkage(entity) & IR_LINKAGE_EXTERN)
;
+ return
get_entity_visibility(entity) != ir_visibility_external
;
}
/** patches SymConsts to work in position independent code */
}
/** patches SymConsts to work in position independent code */