cleanup and fix some bugs in ir reader/writer
[libfirm] / include / libfirm / ircgcons.h
index 2f627b1..829fd2b 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.
  *
 #ifndef FIRM_IR_IRCGCONS_H
 #define FIRM_IR_IRCGCONS_H
 
-#include "firm_types.h"
+#ifdef INTERPROCEDURAL_VIEW
 
-/** The state of the interprocedural view.
- *
- * This value indicates the state of the interprocedural view.
- */
-typedef enum {
-  ip_view_no,       /**< The interprocedural view is not constructed.  There are no
-                         view specific nodes (EndReg, Filter, Break ...) in any graph.  */
-  ip_view_valid,    /**< The interprocedural view is valid.  */
-  ip_view_invalid   /**< The interprocedural view is invalid.  Specific nodes are
-                         all still in the representation, but the graph is no more complete. */
-} ip_view_state;
+#include "firm_types.h"
 
 /** Return the current state of the interprocedural view. */
 ip_view_state get_irp_ip_view_state(void);
@@ -65,3 +55,5 @@ void cg_construct(int arr_len, ir_entity *free_methods_arr[]);
 void cg_destruct(void);
 
 #endif
+
+#endif