projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9bb932
)
Simplify relative binary emission of entities.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 29 Sep 2009 13:04:37 +0000
(13:04 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 29 Sep 2009 13:04:37 +0000
(13:04 +0000)
[r26662]
ir/be/ia32/ia32_emitter.c
patch
|
blob
|
history
diff --git
a/ir/be/ia32/ia32_emitter.c
b/ir/be/ia32/ia32_emitter.c
index
1ea7f4d
..
833421d
100644
(file)
--- 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) {