Commit c4304d0f authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Simplify relative binary emission of entities.

[r26662]
parent a9bb932f
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment