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
b193f536
Commit
b193f536
authored
Feb 25, 2010
by
Christoph Mallon
Browse files
Remove the ugly and write-only variable cur_reg_set.
[r27219]
parent
d4840ad0
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/mips/bearch_mips.c
View file @
b193f536
...
...
@@ -68,9 +68,6 @@
#define DEBUG_MODULE "firm.be.mips.isa"
/* TODO: ugly, but we need it to get access to the registers assigned to Phi nodes */
static
set
*
cur_reg_set
=
NULL
;
/**************************************************
* _ _ _ __
* | | | (_)/ _|
...
...
@@ -254,8 +251,6 @@ static void mips_emit_and_done(void *self)
mips_gen_routine
(
cg
,
irg
);
cur_reg_set
=
NULL
;
/* de-allocate code generator */
del_set
(
cg
->
reg_set
);
free
(
cg
);
...
...
@@ -290,8 +285,6 @@ static void *mips_cg_init(be_irg_t *birg)
cg
->
isa
=
isa
;
cg
->
birg
=
birg
;
cur_reg_set
=
cg
->
reg_set
;
isa
->
cg
=
cg
;
return
(
arch_code_generator_t
*
)
cg
;
...
...
ir/be/ppc32/bearch_ppc32.c
View file @
b193f536
...
...
@@ -66,9 +66,6 @@
int
isleaf
;
/* TODO: ugly, but we need it to get access to the registers assigned to Phi nodes */
static
set
*
cur_reg_set
=
NULL
;
/**************************************************
* _ _ _ __
* | | | (_)/ _|
...
...
@@ -427,8 +424,6 @@ static void ppc32_emit_and_done(void *self)
dump_ir_block_graph_sched
(
irg
,
"-ppc-finished"
);
ppc32_gen_routine
(
cg
,
irg
);
cur_reg_set
=
NULL
;
/* de-allocate code generator */
del_set
(
cg
->
reg_set
);
free
(
self
);
...
...
@@ -469,8 +464,6 @@ static void *ppc32_cg_init(be_irg_t *birg)
cg
->
blk_sched
=
NULL
;
FIRM_DBG_REGISTER
(
cg
->
mod
,
"firm.be.ppc.cg"
);
cur_reg_set
=
cg
->
reg_set
;
return
(
arch_code_generator_t
*
)
cg
;
}
...
...
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