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
62e77ea8
Commit
62e77ea8
authored
Sep 20, 2006
by
Michael Beck
Browse files
be_abi_omit_fp() added
clear the abi callback environment after done for safety
parent
fd636a3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
62e77ea8
...
...
@@ -1799,6 +1799,7 @@ be_abi_irg_t *be_abi_introduce(be_irg_t *birg)
arch_env_push_irn_handler
(
env
->
birg
->
main_env
->
arch_env
,
&
env
->
irn_handler
);
env
->
call
->
cb
->
done
(
env
->
cb
);
env
->
cb
=
NULL
;
return
env
;
}
...
...
@@ -2079,3 +2080,11 @@ static const arch_irn_ops_if_t abi_irn_ops = {
static
const
arch_irn_handler_t
abi_irn_handler
=
{
abi_get_irn_ops
};
/**
* Returns non-zero if the ABI has omitted the frame pointer in
* the current graph.
*/
int
be_abi_omit_fp
(
const
be_abi_irg_t
*
abi
)
{
return
abi
->
call
->
flags
.
bits
.
try_omit_fp
;
}
ir/be/beabi.h
View file @
62e77ea8
...
...
@@ -155,4 +155,10 @@ struct _be_stack_layout_t {
*/
const
be_stack_layout_t
*
be_abi_get_stack_layout
(
const
be_abi_irg_t
*
abi
);
/**
* Returns non-zero if the ABI has omitted the frame pointer in
* the current graph.
*/
int
be_abi_omit_fp
(
const
be_abi_irg_t
*
abi
);
#endif
/* _BEABI_H */
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