removed unused header
[libfirm] / ir / ana2 / pto_init.c
index 898d88d..221b325 100644 (file)
@@ -1,17 +1,31 @@
 /* -*- c -*- */
 
 /*
-   Project:     libFIRM
-   File name:   ir/ana/pto_init.c
-   Purpose:     Initialisation Functions
-   Author:      Florian
-   Modified by:
-   Created:     Sat Nov 13 19:35:27 CET 2004
-   CVS-ID:      $Id$
-   Copyright:   (c) 1999-2004 Universität Karlsruhe
-   Licence:     This file is protected by the GPL -  GNU GENERAL PUBLIC LICENSE.
-*/
-
+ * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
+ */
+
+/**
+ * @file
+ * @brief    Initialisation Functions
+ * @author   Florian
+ * @date     Sat Nov 13 19:35:27 CET 2004
+ * @version  $Id$
+ */
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
@@ -21,7 +35,6 @@
 */
 
 # include <assert.h>
-# include <obstack.h>
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif
@@ -29,6 +42,7 @@
 # include <strings.h>
 #endif
 
+# include "obst.h"
 # include "pto.h"
 # include "pto_init.h"
 # include "pto_debug.h"
@@ -103,7 +117,7 @@ static alloc_pto_t *new_alloc_pto (ir_node *alloc, int n_ctxs)
 static pto_t* new_symconst_pto (ir_node *symconst)
 {
   pto_t *pto;
-  entity *ent;
+  ir_entity *ent;
   desc_t *desc = NULL;
 
   assert (op_SymConst == get_irn_op(symconst));
@@ -154,7 +168,7 @@ static void clear_type_link (type_or_ent *thing, void *_unused)
       set_type_link (tp, NULL);
     }
   } else if (is_entity (thing)) {
-    entity *ent = (entity*) thing;
+    ir_entity *ent = (ir_entity*) thing;
 
     DBGPRINT (1, (stdout, "%s (\"%s\")\n",
                   __FUNCTION__,
@@ -181,7 +195,7 @@ static void reset_node_pto (ir_node *node, void *env)
 {
   reset_env_t *reset_env = (reset_env_t*) env;
   int ctx_idx = reset_env->ctx_idx;
-  opcode op = get_irn_opcode (node);
+  ir_opcode op = get_irn_opcode (node);
 
   /* HERE ("start"); */
 
@@ -232,12 +246,12 @@ static void init_pto (ir_node *node, void *env)
   init_env_t *init_env = (init_env_t*) env;
   int n_ctxs = init_env->n_ctxs;
 
-  opcode op = get_irn_opcode (node);
+  ir_opcode op = get_irn_opcode (node);
 
   switch (op) {
   case (iro_SymConst): {
     if (mode_is_reference (get_irn_mode (node))) {
-      entity *ent = get_SymConst_entity (node);
+      ir_entity *ent = get_SymConst_entity (node);
       ir_type *tp = get_entity_type (ent);
       if (is_Class_type (tp) || is_Pointer_type (tp)) {
         pto_t *symconst_pto = new_symconst_pto (node);
@@ -317,7 +331,7 @@ void fake_main_args (ir_graph *graph)
 {
   /* HERE ("start"); */
 
-  entity *ent = get_irg_entity (graph);
+  ir_entity *ent = get_irg_entity (graph);
   ir_type *mtp = get_entity_type (ent);
   ir_node **args = find_irg_args (graph);
   ir_type *ctp = get_method_param_type (mtp, 1); /* ctp == char[]*[]* */
@@ -395,7 +409,7 @@ void pto_init_graph (ir_graph *graph)
   const int n_ctxs = ginfo->n_ctxs;
 
   /* only for debugging stuff: */
-  entity *ent = get_irg_entity (graph);
+  ir_entity *ent = get_irg_entity (graph);
   const char *ent_name = (char*) get_entity_name (ent);
   const char *own_name = (char*) get_type_name (get_entity_owner (ent));
 
@@ -436,6 +450,12 @@ void pto_reset_graph_pto (ir_graph *graph, int ctx_idx)
 \f
 /*
   $Log$
+  Revision 1.23  2007/01/16 15:45:42  beck
+  renamed type opcode to ir_opcode
+
+  Revision 1.22  2006/12/13 19:46:47  beck
+  rename type entity into ir_entity
+
   Revision 1.21  2006/06/08 10:49:07  beck
   renamed type to ir_type