projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Complement r22830.
[libfirm]
/
ir
/
be
/
mips
/
mips_transform.c
diff --git
a/ir/be/mips/mips_transform.c
b/ir/be/mips/mips_transform.c
index
ad1e5b6
..
f27380d
100644
(file)
--- a/
ir/be/mips/mips_transform.c
+++ b/
ir/be/mips/mips_transform.c
@@
-23,9
+23,7
@@
* @author Matthias Braun, Mehdi
* @version $Id$
*/
* @author Matthias Braun, Mehdi
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif
#include <limits.h>
#include <limits.h>
@@
-60,9
+58,6
@@
#include "gen_mips_regalloc_if.h"
#include "gen_mips_regalloc_if.h"
-/** hold the current code generator during transformation */
-static mips_code_gen_t *env_cg = NULL;
-
/****************************************************************************************************
* _ _ __ _ _
* | | | | / _| | | (_)
/****************************************************************************************************
* _ _ __ _ _
* | | | | / _| | | (_)
@@
-1096,7
+1091,7
@@
static void mips_transform_Reload(mips_transform_env_t* env) {
/* copy the register from the old node to the new Load */
reg = arch_get_irn_register(node);
/* copy the register from the old node to the new Load */
reg = arch_get_irn_register(node);
- arch_set_irn_register(
env->cg->arch_env,
proj, reg);
+ arch_set_irn_register(proj, reg);
exchange(node, proj);
}
exchange(node, proj);
}
@@
-1116,7
+1111,7
@@
static ir_node *gen_AddSP(ir_node *node)
/* copy the register requirements from the old node to the new node */
reg = arch_get_irn_register(node);
/* copy the register requirements from the old node to the new node */
reg = arch_get_irn_register(node);
- arch_set_irn_register(
env->cg->arch_env,
add, reg);
+ arch_set_irn_register(add, reg);
return add;
}
return add;
}
@@
-1171,7
+1166,6
@@
static void register_transformers(void)
void mips_transform_graph(mips_code_gen_t *cg)
{
void mips_transform_graph(mips_code_gen_t *cg)
{
- env_cg = cg;
register_transformers();
be_transform_graph(cg->birg, NULL);
}
register_transformers();
be_transform_graph(cg->birg, NULL);
}