From: Christoph Mallon Date: Sat, 3 Nov 2012 04:16:58 +0000 (+0100) Subject: Inline x87_alloc_state() into its only user. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=1d680f8b8744bf44418565f38de39a713101be28;p=libfirm Inline x87_alloc_state() into its only user. --- diff --git a/ir/be/ia32/ia32_x87.c b/ir/be/ia32/ia32_x87.c index 4723f38ae..80a6117da 100644 --- 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; } -/** - * 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. * @@ -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) { - x87_state *res = x87_alloc_state(sim); - + x87_state *const res = OALLOC(&sim->obst, x87_state); *res = *src; return res; }