Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
c4304d0f
Commit
c4304d0f
authored
Sep 29, 2009
by
Christoph Mallon
Browse files
Simplify relative binary emission of entities.
[r26662]
parent
a9bb932f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
c4304d0f
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment