obstack access function
authorGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Mon, 24 Mar 2003 16:27:33 +0000 (16:27 +0000)
committerGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Mon, 24 Mar 2003 16:27:33 +0000 (16:27 +0000)
[r958]

ir/ir/irgraph.c
ir/ir/irgraph_t.h

index 4cdd97e..773d47b 100644 (file)
@@ -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;
index 5287704..4a311c6 100644 (file)
@@ -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_ */