From c4304d0f4d8aa228b24b12d8763a533f5d49289f Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Tue, 29 Sep 2009 13:04:37 +0000 Subject: [PATCH] Simplify relative binary emission of entities. [r26662] --- ir/be/ia32/ia32_emitter.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ir/be/ia32/ia32_emitter.c b/ir/be/ia32/ia32_emitter.c index 1ea7f4d9d..833421d23 100644 --- a/ir/be/ia32/ia32_emitter.c +++ b/ir/be/ia32/ia32_emitter.c @@ -2343,10 +2343,6 @@ static void bemit_entity(ir_entity *entity, bool entity_sign, int offset, return; } - if (is_relative) { - offset -= 4; - } - /* the final version should remember the position in the bytestream and patch it with the correct address at linktime... */ be_emit_cstring("\t.long "); @@ -2357,6 +2353,7 @@ static void bemit_entity(ir_entity *entity, bool entity_sign, int offset, if (is_relative) { be_emit_cstring("-."); + offset -= 4; } if (offset != 0) { -- 2.20.1