From: Michael Beck Date: Sun, 7 Jan 2007 23:00:08 +0000 (+0000) Subject: ir_address_taken_computed_state for globals added X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=5f8bf1abe4c75f4e78518b7ac5edb143536ec357;p=libfirm ir_address_taken_computed_state for globals added [r8500] --- diff --git a/ir/ir/irprog.c b/ir/ir/irprog.c index 821551ebf..42d23d7f7 100644 --- a/ir/ir/irprog.c +++ b/ir/ir/irprog.c @@ -6,7 +6,7 @@ * Modified by: * Created: 2000 * CVS-ID: $Id$ - * Copyright: (c) 2000-2003 Universität Karlsruhe + * Copyright: (c) 2000-2007 Universität Karlsruhe * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ @@ -25,6 +25,7 @@ #include "obst.h" #include "typegmod.h" #include "irop_t.h" +#include "irmemory.h" /** The name of the Global Type. */ #define GLOBAL_TYPE_NAME "GlobalType" @@ -88,6 +89,7 @@ static ir_prog *complete_ir_prog(ir_prog *irp) { irp->ip_outedges = NULL; irp->trouts_state = outs_none; irp->class_cast_state = ir_class_casts_transitive; + irp->globals_adr_taken_state = ir_address_taken_not_computed; return irp; } diff --git a/ir/ir/irprog_t.h b/ir/ir/irprog_t.h index 8813f5dd4..e29824ed8 100644 --- a/ir/ir/irprog_t.h +++ b/ir/ir/irprog_t.h @@ -6,7 +6,7 @@ * Modified by: * Created: 2000 * CVS-ID: $Id$ - * Copyright: (c) 2000-2003 Universität Karlsruhe + * Copyright: (c) 2000-2007 Universität Karlsruhe * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ @@ -29,6 +29,7 @@ #include "typegmod.h" #include "irtypeinfo.h" #include "tr_inheritance.h" +#include "irmemory.h" #include "callgraph.h" #include "field_temperature.h" @@ -81,6 +82,7 @@ struct ir_prog { exec_freq_state execfreq_state; /**< The state of execution frequency information */ loop_nesting_depth_state lnd_state; /**< The state of loop nesting depth information. */ ir_class_cast_state class_cast_state; /**< The state of cast operations in code. */ + ir_address_taken_computed_state globals_adr_taken_state; /**< Address taken state of the globals. */ #ifdef DEBUG_libfirm long max_node_nr; /**< to generate unique numbers for nodes. */