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
b188c881
Commit
b188c881
authored
Dec 09, 2015
by
Christoph Mallon
Browse files
cleanup: Clean up 'x86_parse_clobber()' a bit.
parent
37cca19d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/x86_asm.c
View file @
b188c881
...
@@ -31,13 +31,12 @@
...
@@ -31,13 +31,12 @@
arch_register_t
const
*
x86_parse_clobber
(
x86_clobber_name_t
const
*
const
additional_clobber_names
,
char
const
*
const
clobber
)
arch_register_t
const
*
x86_parse_clobber
(
x86_clobber_name_t
const
*
const
additional_clobber_names
,
char
const
*
const
clobber
)
{
{
arch_register_t
const
*
reg
=
arch_find_register
(
clobber
);
arch_register_t
const
*
const
reg
=
arch_find_register
(
clobber
);
if
(
reg
!=
NULL
)
if
(
reg
)
return
reg
;
return
reg
;
arch_register_t
const
*
const
regs
=
isa_if
->
registers
;
for
(
x86_clobber_name_t
const
*
i
=
additional_clobber_names
;
i
->
name
;
++
i
)
{
for
(
size_t
i
=
0
;
additional_clobber_names
[
i
].
name
!=
NULL
;
++
i
)
{
if
(
streq
(
i
->
name
,
clobber
))
if
(
streq
(
additional_clobber_names
[
i
].
name
,
clobber
))
return
&
isa_if
->
registers
[
i
->
index
];
return
&
regs
[
additional_clobber_names
[
i
].
index
];
}
}
return
NULL
;
return
NULL
;
}
}
...
...
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