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
7b0d3c99
Commit
7b0d3c99
authored
Dec 29, 2008
by
Christoph Mallon
Browse files
Remove write-only bitset.
[r24958]
parent
28612b2b
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
7b0d3c99
...
...
@@ -1710,7 +1710,6 @@ static void modify_irg(be_abi_irg_t *env)
lower_frame_sels_env_t
ctx
;
ir_entity
**
param_map
;
bitset_t
*
used_proj_nr
;
DEBUG_ONLY
(
firm_dbg_module_t
*
dbg
=
env
->
dbg
;)
DBG
((
dbg
,
LEVEL_1
,
"introducing abi on %+F
\n
"
,
irg
));
...
...
@@ -1741,7 +1740,6 @@ static void modify_irg(be_abi_irg_t *env)
env
->
regs
=
pmap_create
();
used_proj_nr
=
bitset_alloca
(
1024
);
n_params
=
get_method_n_params
(
method_type
);
args
=
obstack_alloc
(
&
env
->
obst
,
n_params
*
sizeof
(
args
[
0
]));
memset
(
args
,
0
,
n_params
*
sizeof
(
args
[
0
]));
...
...
@@ -1783,7 +1781,6 @@ static void modify_irg(be_abi_irg_t *env)
/* For now, associate the register with the old Proj from Start representing that argument. */
pmap_insert
(
env
->
regs
,
(
void
*
)
arg
->
reg
,
args
[
i
]);
bitset_set
(
used_proj_nr
,
i
);
DBG
((
dbg
,
LEVEL_2
,
"
\t
arg #%d -> reg %s
\n
"
,
i
,
arg
->
reg
->
name
));
}
}
...
...
@@ -1826,7 +1823,6 @@ static void modify_irg(be_abi_irg_t *env)
add_type
|=
arch_register_req_type_produces_sp
|
arch_register_req_type_ignore
;
assert
(
nr
>=
0
);
bitset_set
(
used_proj_nr
,
nr
);
proj
=
new_r_Proj
(
irg
,
reg_params_bl
,
env
->
reg_params
,
mode
,
nr
);
pmap_insert
(
env
->
regs
,
(
void
*
)
reg
,
proj
);
be_set_constr_single_reg_out
(
env
->
reg_params
,
nr
,
reg
,
add_type
);
...
...
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