remove irsimpletype stuff (unused/broken)
[libfirm] / ir / be / beschedrss.c
index 742e0d4..b70a83d 100644 (file)
@@ -53,7 +53,7 @@
 #include "plist.h"
 #include "array_t.h"
 
-#include "height.h"
+#include "heights.h"
 
 #include "beabi.h"
 #include "bemodule.h"
@@ -149,7 +149,7 @@ typedef struct serialization {
 
 typedef struct rss {
        ir_phase          ph;              /**< Phase to hold some data */
-       heights_t        *h;              /**< The current height object */
+       ir_heights_t     *h;              /**< The current height object */
        ir_graph         *irg;            /**< The irg to preprocess */
        plist_t          *nodes;          /**< The list of interesting nodes */
        const arch_env_t *arch_env;       /**< The architecture environment */
@@ -2104,8 +2104,8 @@ static void process_block(ir_node *block, void *env)
        rss->max_height = heights_recompute_block(rss->h, block);
 
        /* loop over all register classes */
-       for (i = arch_env_get_n_reg_class(rss->arch_env) - 1; i >= 0; --i) {
-               const arch_register_class_t *cls = arch_env_get_reg_class(rss->arch_env, i);
+       for (i = rss->arch_env->n_register_classes - 1; i >= 0; --i) {
+               const arch_register_class_t *cls = &rss->arch_env->register_classes[i];
 
                rss->cls = cls;
                DBG((rss->dbg, LEVEL_1, "register class %s\n", arch_register_class_name(cls)));