/*
- * Copyright (C) 1995-2010 University of Karlsruhe. All right reserved.
- *
* This file is part of libFirm.
- *
- * This file may be distributed and/or modified under the terms of the
- * GNU General Public License version 2 as published by the Free Software
- * Foundation and appearing in the file LICENSE.GPL included in the
- * packaging of this file.
- *
- * Licensees holding valid libFirm Professional Edition licenses may use
- * this file in accordance with the libFirm Commercial License.
- * Agreement provided with the Software.
- *
- * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
- * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE.
+ * Copyright (C) 2012 University of Karlsruhe.
*/
/**
current_ir_graph = irg;
/* create a new obstack */
- struct obstack *old_obst = irg->obst;
- struct obstack *new_obst = XMALLOC(struct obstack);
- obstack_init(new_obst);
- irg->obst = new_obst;
+ struct obstack old_obst = irg->obst;
+ obstack_init(&irg->obst);
irg->last_node_idx = 0;
free_vrp_data(irg);
transform_nodes(irg, func);
/* free the old obstack */
- obstack_free(old_obst, 0);
- xfree(old_obst);
+ obstack_free(&old_obst, 0);
/* restore state */
current_ir_graph = old_current_ir_graph;