Remove the unused parameter const arch_env_t *env from arch_set_irn_register().
[libfirm] / ir / be / beirg.c
index c9cd719..4928186 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
 
 #include "execfreq.h"
 #include "beirg_t.h"
+#include "absgraph.h"
 
-void be_assure_liveness(be_irg_t *birg)
+be_lv_t *be_assure_liveness(be_irg_t *birg)
 {
        if (birg->lv != NULL)
-               return;
-
-       birg->lv = be_liveness(birg->irg);
-}
-
-void be_invalidate_liveness(be_irg_t *birg)
-{
-       if (birg->lv == NULL)
-               return;
+               return birg->lv;
 
-       be_liveness_free(birg->lv);
-       birg->lv = NULL;
+       return birg->lv = be_liveness(birg);
 }
 
 void be_assure_dom_front(be_irg_t *birg)