summaryrefslogtreecommitdiffhomepage
path: root/ir/tr
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-05-01 06:53:48 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-05-02 08:28:35 +0200
commit8ab3e0e3f151142f567590c1a0b491b0a144ca50 (patch)
treebfa80eff28fade8d049cb7916b5dc1a336c05842 /ir/tr
parent27be0d38cf88ea88ed9c68b09c4bb8963adfd39d (diff)
cleanup: Remove unnecessary calls to alter an entity right after creating it.
Diffstat (limited to 'ir/tr')
-rw-r--r--ir/tr/entity.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/tr/entity.c b/ir/tr/entity.c
index 5fd1d58..01fa85b 100644
--- a/ir/tr/entity.c
+++ b/ir/tr/entity.c
@@ -914,8 +914,6 @@ void ir_init_entity(ir_prog *irp)
ident *const id = new_id_from_str(UNKNOWN_ENTITY_NAME);
ir_type *const utype = get_unknown_type();
irp->unknown_entity = intern_new_entity(irp->dummy_owner, IR_ENTITY_UNKNOWN,
- id, utype, ir_visibility_private);
- set_entity_visibility(irp->unknown_entity, ir_visibility_external);
- set_entity_ld_ident(irp->unknown_entity, id);
+ id, utype, ir_visibility_external);
hook_new_entity(irp->unknown_entity);
}