return 0;
[libfirm] / ir / be / bemain.c
index 357afb0..cced20f 100644 (file)
@@ -49,6 +49,7 @@
 #include "irtools.h"
 #include "irvrfy.h"
 #include "irprintf.h"
+#include "iroptimize.h"
 #include "firmstat.h"
 #include "execfreq.h"
 
@@ -61,7 +62,6 @@
 #include "besched_t.h"
 #include "belistsched.h"
 #include "belive_t.h"
-#include "bespillbelady.h"
 #include "bera.h"
 #include "bechordal_t.h"
 #include "beifg.h"
@@ -399,6 +399,7 @@ static void be_main_loop(FILE *file_handle, const char *cup_name)
        }
 
        be_init_env(&env, file_handle);
+       env.cup_name = cup_name;
 
        isa = arch_env_get_isa(env.arch_env);