summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-07-20 07:55:28 +0200
committerMatthias Braun <matze@braunis.de>2015-07-20 07:56:16 +0200
commit76f731edb6ba1b3388df382a5a8da5f1eeb1f227 (patch)
tree1802f262275301ddb915b0e8141c507a565c57a0 /ir/be/begnuas.c
parenta924aadd47dbb22231279f3cbb1612c4c46d7e59 (diff)
Remove got_entry entity type
This is not really a new entity type but merely a relocation type. Handle it with a x86_immediate_kind.
Diffstat (limited to 'ir/be/begnuas.c')
-rw-r--r--ir/be/begnuas.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c
index 5080e5a..7f92183 100644
--- a/ir/be/begnuas.c
+++ b/ir/be/begnuas.c
@@ -1230,11 +1230,6 @@ void be_gas_emit_entity(const ir_entity *entity)
ir_label_t label = get_entity_label(entity);
be_emit_irprintf("%s_%lu", be_gas_get_private_prefix(), label);
return;
- } else if (entity->entity_kind == IR_ENTITY_GOTENTRY) {
- ir_entity *referenced = entity->attr.got.referenced;
- be_gas_emit_entity(referenced);
- be_emit_cstring("@GOTPCREL");
- return;
}
char const *const name = get_entity_ld_name(entity);
@@ -1313,9 +1308,6 @@ static void emit_global(be_main_env_t const *const main_env,
/* Block labels are already emitted in the code. */
if (kind == IR_ENTITY_LABEL)
return;
- /* GOT entries are created automatically */
- if (kind == IR_ENTITY_GOTENTRY)
- return;
/* we already emitted all methods with graphs in other functions like
* be_gas_emit_function_prolog(). All others don't need to be emitted. */