Fixed 'inline' lossage --flo
[libfirm] / ir / ana / cgana.c
index 619c304..967d392 100644 (file)
@@ -16,6 +16,9 @@
  * Call-Operationen aufrufbaren Methoden bestimmt.
  *
  */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
 
 #include <stdlib.h>
 #include "cgana.h"
@@ -29,7 +32,7 @@
 #include "ircons.h"
 #include "irgmod.h"
 #include "irnode.h"
-#include "irflag.h"
+#include "irflag_t.h"
 
 #include "dbginfo_t.h"
 
@@ -206,7 +209,7 @@ static void sel_methods_walker(ir_node * node, pmap * ldname_map) {
   } else if (get_irn_op(node) == op_Sel &&
             is_method_type(get_entity_type(get_Sel_entity(node)))) {
     entity * ent = get_Sel_entity(node);
-    if (get_optimize() && get_opt_dyn_meth_dispatch() &&
+    if (get_opt_optimize() && get_opt_dyn_meth_dispatch() &&
        (get_irn_op(skip_Proj(get_Sel_ptr(node))) == op_Alloc)) {
       ir_node *new_node;
       entity *called_ent;
@@ -264,7 +267,7 @@ static void sel_methods_walker(ir_node * node, pmap * ldname_map) {
        printf("\n");
 #endif
 
-       if (get_optimize() && get_opt_dyn_meth_dispatch() &&
+       if (get_opt_optimize() && get_opt_dyn_meth_dispatch() &&
            (ARR_LEN(arr) == 1 && arr[0] != NULL)) {
          ir_node *new_node;
          /* Die Sel-Operation kann immer nur einen Wert auf eine