ir_address_taken_computed_state for globals added
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 7 Jan 2007 23:00:08 +0000 (23:00 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 7 Jan 2007 23:00:08 +0000 (23:00 +0000)
[r8500]

ir/ir/irprog.c
ir/ir/irprog_t.h

index 821551e..42d23d7 100644 (file)
@@ -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;
 }
index 8813f5d..e29824e 100644 (file)
@@ -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. */