From: Christoph Mallon Date: Tue, 29 Sep 2009 13:04:37 +0000 (+0000) Subject: Simplify relative binary emission of entities. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c4304d0f4d8aa228b24b12d8763a533f5d49289f;p=libfirm Simplify relative binary emission of entities. [r26662] --- 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) {