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
11b7b651
Commit
11b7b651
authored
Oct 23, 2008
by
Christoph Mallon
Browse files
Remove the unused regs_saved_by_me hook.
[r23138]
parent
8b55e8d1
Changes
6
Hide whitespace changes
Inline
Side-by-side
ir/be/TEMPLATE/bearch_TEMPLATE.c
View file @
11b7b651
...
...
@@ -468,15 +468,6 @@ static ir_type *TEMPLATE_get_between_type(void *self)
return
between_type
;
}
static
void
TEMPLATE_abi_dont_save_regs
(
void
*
self
,
pset
*
s
)
{
TEMPLATE_abi_env_t
*
env
=
self
;
if
(
env
->
flags
.
try_omit_fp
)
{
/* insert the BP register into the ignore set */
pset_insert_ptr
(
s
,
env
->
arch_env
->
bp
);
}
}
/**
* Build the prolog, return the BASE POINTER register
*/
...
...
@@ -507,7 +498,6 @@ static const be_abi_callbacks_t TEMPLATE_abi_callbacks = {
TEMPLATE_abi_init
,
free
,
TEMPLATE_get_between_type
,
TEMPLATE_abi_dont_save_regs
,
TEMPLATE_abi_prologue
,
TEMPLATE_abi_epilogue
,
};
...
...
ir/be/arm/bearch_arm.c
View file @
11b7b651
...
...
@@ -871,19 +871,6 @@ static void *arm_abi_init(const be_abi_call_t *call, const arch_env_t *arch_env,
return
env
;
}
/**
* Put all registers which are saved by the prologue/epilogue in a set.
*
* @param self The callback object.
* @param s The result set.
*/
static
void
arm_abi_dont_save_regs
(
void
*
self
,
pset
*
s
)
{
arm_abi_env_t
*
env
=
self
;
if
(
env
->
flags
.
try_omit_fp
)
pset_insert_ptr
(
s
,
env
->
arch_env
->
bp
);
}
/**
* Generate the routine prologue.
*
...
...
@@ -1003,7 +990,6 @@ static const be_abi_callbacks_t arm_abi_callbacks = {
arm_abi_init
,
free
,
arm_get_between_type
,
arm_abi_dont_save_regs
,
arm_abi_prologue
,
arm_abi_epilogue
,
};
...
...
ir/be/beabi.h
View file @
11b7b651
...
...
@@ -75,13 +75,6 @@ struct _be_abi_callbacks_t {
*/
ir_type
*
(
*
get_between_type
)(
void
*
self
);
/**
* Put all registers which are saved by the prologue/epilogue in a set.
* @param self The callback object.
* @param regs A set.
*/
void
(
*
regs_saved_by_me
)(
void
*
self
,
pset
*
regs
);
/**
* Generate the prologue.
* @param self The callback object.
...
...
ir/be/ia32/bearch_ia32.c
View file @
11b7b651
...
...
@@ -393,19 +393,6 @@ static int ia32_get_sp_bias(const ir_node *node)
return
0
;
}
/**
* Put all registers which are saved by the prologue/epilogue in a set.
*
* @param self The callback object.
* @param s The result set.
*/
static
void
ia32_abi_dont_save_regs
(
void
*
self
,
pset
*
s
)
{
ia32_abi_env_t
*
env
=
self
;
if
(
env
->
flags
.
try_omit_fp
)
pset_insert_ptr
(
s
,
env
->
aenv
->
bp
);
}
/**
* Generate the routine prologue.
*
...
...
@@ -898,7 +885,6 @@ static const be_abi_callbacks_t ia32_abi_callbacks = {
ia32_abi_init
,
ia32_abi_done
,
ia32_abi_get_between_type
,
ia32_abi_dont_save_regs
,
ia32_abi_prologue
,
ia32_abi_epilogue
};
...
...
ir/be/mips/bearch_mips.c
View file @
11b7b651
...
...
@@ -532,14 +532,6 @@ static void *mips_abi_init(const be_abi_call_t *call, const arch_env_t *arch_env
return
env
;
}
static
void
mips_abi_dont_save_regs
(
void
*
self
,
pset
*
s
)
{
mips_abi_env_t
*
env
=
self
;
if
(
env
->
flags
.
try_omit_fp
)
pset_insert_ptr
(
s
,
env
->
arch_env
->
bp
);
}
static
const
arch_register_t
*
mips_abi_prologue
(
void
*
self
,
ir_node
**
mem
,
pmap
*
reg_map
,
int
*
stack_bias
)
{
mips_abi_env_t
*
env
=
self
;
...
...
@@ -705,7 +697,6 @@ static const be_abi_callbacks_t mips_abi_callbacks = {
mips_abi_init
,
free
,
mips_abi_get_between_type
,
mips_abi_dont_save_regs
,
mips_abi_prologue
,
mips_abi_epilogue
,
};
...
...
ir/be/ppc32/bearch_ppc32.c
View file @
11b7b651
...
...
@@ -304,17 +304,6 @@ static ir_type *ppc32_abi_get_between_type(void *self)
return
between_type
;
}
/**
* Put all registers which are saved by the prologue/epilogue in a set.
* @param self The callback object.
* @param regs A set.
*/
static
void
ppc32_abi_regs_saved_by_me
(
void
*
self
,
pset
*
regs
)
{
(
void
)
self
;
(
void
)
regs
;
}
/**
* Generate the prologue.
* @param self The callback object.
...
...
@@ -362,7 +351,6 @@ static const be_abi_callbacks_t ppc32_abi_callbacks = {
ppc32_abi_init
,
ppc32_abi_done
,
ppc32_abi_get_between_type
,
ppc32_abi_regs_saved_by_me
,
ppc32_abi_prologue
,
ppc32_abi_epilogue
,
};
...
...
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