summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beirg.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-07-02 18:58:20 +0200
committerMatthias Braun <matze@braunis.de>2010-07-02 18:58:20 +0200
commit65a52a96e8ab7ed601d7f98c516d37c46b674b4a (patch)
treea292f5f42876918c2ae2a907bb84f62f97c5d541 /ir/be/beirg.h
parent7a178059678ff6c6094a7cd8fac5644367417102 (diff)
convert remaining APIs from be_irg_t* to ir_graph*
[r27693]
Diffstat (limited to 'ir/be/beirg.h')
-rw-r--r--ir/be/beirg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/beirg.h b/ir/be/beirg.h
index 3cdb218..27f3ba1 100644
--- a/ir/be/beirg.h
+++ b/ir/be/beirg.h
@@ -47,7 +47,7 @@ void be_free_birg(ir_graph *irg);
* An ir_graph with additional analysis data about this irg. Also includes some
* backend structures
*/
-struct be_irg_t {
+typedef struct be_irg_t {
ir_graph *irg;
be_main_env_t *main_env;
be_abi_irg_t *abi;
@@ -59,7 +59,7 @@ struct be_irg_t {
register constraints which we can't keep
in the irg obst, because it gets replace
during code selection) */
-};
+} be_irg_t;
static inline be_irg_t *be_birg_from_irg(const ir_graph *irg)
{
@@ -107,7 +107,7 @@ static inline const arch_env_t *be_get_irg_arch_env(const ir_graph *irg)
return be_birg_from_irg(irg)->main_env->arch_env;
}
-static inline struct obstack *be_get_birg_obst(const ir_graph *irg)
+static inline struct obstack *be_get_be_obst(const ir_graph *irg)
{
be_irg_t *birg = be_birg_from_irg(irg);
return &birg->obst;