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
0791264b
Commit
0791264b
authored
Jan 10, 2016
by
Christoph Mallon
Browse files
ia32: Use 'switch' instead of an 'if'-cascade.
parent
47829b4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
0791264b
...
...
@@ -882,12 +882,19 @@ static void emit_jumptable_target(ir_entity const *const table,
(
void
)
table
;
ir_node
const
*
const
block
=
get_cfop_target_block
(
proj_x
);
be_gas_emit_block_name
(
block
);
be_pic_style_t
const
pic_style
=
be_options
.
pic_style
;
if
(
pic_style
==
BE_PIC_ELF_PLT
||
pic_style
==
BE_PIC_ELF_NO_PLT
)
{
switch
(
be_options
.
pic_style
)
{
case
BE_PIC_NONE
:
break
;
case
BE_PIC_ELF_NO_PLT
:
case
BE_PIC_ELF_PLT
:
be_emit_cstring
(
"@GOTOFF"
);
}
else
if
(
pic_style
==
BE_PIC_MACH_O
)
{
break
;
case
BE_PIC_MACH_O
:
be_emit_char
(
'-'
);
be_emit_string
(
pic_base_label
);
break
;
}
}
...
...
Write
Preview
Markdown
is supported
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