projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
18e5788
)
Inline x87_alloc_state() into its only user.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 3 Nov 2012 04:16:58 +0000
(
05:16
+0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 5 Nov 2012 17:07:18 +0000
(18:07 +0100)
ir/be/ia32/ia32_x87.c
patch
|
blob
|
history
diff --git
a/ir/be/ia32/ia32_x87.c
b/ir/be/ia32/ia32_x87.c
index
4723f38
..
80a6117
100644
(file)
--- a/
ir/be/ia32/ia32_x87.c
+++ b/
ir/be/ia32/ia32_x87.c
@@
-329,21
+329,6
@@
static blk_state *x87_get_bl_state(x87_simulator *sim, ir_node *block)
return res;
}
return res;
}
-/**
- * Creates a new x87 state.
- *
- * @param sim the x87 simulator handle
- *
- * @return a new x87 state
- */
-static x87_state *x87_alloc_state(x87_simulator *sim)
-{
- x87_state *res = OALLOC(&sim->obst, x87_state);
-
- res->sim = sim;
- return res;
-}
-
/**
* Clone a x87 state.
*
/**
* Clone a x87 state.
*
@@
-354,8
+339,7
@@
static x87_state *x87_alloc_state(x87_simulator *sim)
*/
static x87_state *x87_clone_state(x87_simulator *sim, const x87_state *src)
{
*/
static x87_state *x87_clone_state(x87_simulator *sim, const x87_state *src)
{
- x87_state *res = x87_alloc_state(sim);
-
+ x87_state *const res = OALLOC(&sim->obst, x87_state);
*res = *src;
return res;
}
*res = *src;
return res;
}