From: Götz Lindenmaier Date: Mon, 24 Mar 2003 16:27:33 +0000 (+0000) Subject: obstack access function X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=362faf2743696638129198519a445178b06de424;p=libfirm obstack access function [r958] --- diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 4cdd97e0c..773d47b73 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -415,6 +415,13 @@ set_irg_n_loc (ir_graph *irg, int n_loc) #endif } + + +/* Returns the obstack associated with the graph. */ +struct obstack get_irg_obstack(ir_graph *irg) { + return irg->obst; +} + irg_phase_state get_irg_phase_state (ir_graph *irg) { return irg->phase_state; diff --git a/ir/ir/irgraph_t.h b/ir/ir/irgraph_t.h index 528770466..4a311c608 100644 --- a/ir/ir/irgraph_t.h +++ b/ir/ir/irgraph_t.h @@ -87,4 +87,7 @@ ir_graph *new_const_code_irg(void); INLINE void set_irg_pinned (ir_graph *irg, op_pinned p); +/** Returns the obstack associated with the graph. */ +struct obstack get_irg_obstack(ir_graph *irg); + # endif /* _IRGRAPH_T_H_ */