sparc: Add missing #include <stdint.h>.
[libfirm] / ir / be / bechordal_main.c
index bb53b54..90f0354 100644 (file)
@@ -1,20 +1,6 @@
 /*
- * Copyright (C) 1995-2008 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.
+ * Copyright (C) 2012 University of Karlsruhe.
  */
 
 /**
@@ -39,7 +25,7 @@
 #include "ircons_t.h"
 #include "irmode_t.h"
 #include "irgraph_t.h"
-#include "irprintf_t.h"
+#include "irprintf.h"
 #include "irgwalk.h"
 #include "ircons.h"
 #include "irdump.h"
@@ -229,7 +215,7 @@ static void pre_spill(be_chordal_env_t *const chordal_env, arch_register_class_t
 {
        chordal_env->cls              = cls;
        chordal_env->border_heads     = pmap_create();
-       chordal_env->allocatable_regs = bitset_malloc(chordal_env->cls->n_regs);
+       chordal_env->allocatable_regs = bitset_malloc(cls->n_regs);
 
        be_assure_live_chk(irg);
 
@@ -237,7 +223,7 @@ static void pre_spill(be_chordal_env_t *const chordal_env, arch_register_class_t
        be_put_allocatable_regs(irg, cls, chordal_env->allocatable_regs);
 
        be_timer_push(T_RA_CONSTR);
-       be_pre_spill_prepare_constr(irg, chordal_env->cls);
+       be_pre_spill_prepare_constr(irg, cls);
        be_timer_pop(T_RA_CONSTR);
 
        dump(BE_CH_DUMP_CONSTR, irg, cls, "constr-pre");