made CondJmp and SwitchJmp pinned
[libfirm] / ir / tr / entity_t.h
index b71f4af..e463430 100644 (file)
 #ifndef FIRM_TR_ENTITY_T_H
 #define FIRM_TR_ENTITY_T_H
 
+#include <assert.h>
+
 #include "firm_common_t.h"
 #include "firm_config.h"
 
+#include "typerep.h"
 #include "type_t.h"
-#include "entity.h"
-#include "typegmod.h"
-#include "mangle.h"
+#include "ident.h"
 #include "pseudo_irg.h"
 
 /** A path in a compound graph. */
@@ -312,7 +313,9 @@ _get_entity_address_taken(const ir_entity *ent) {
 static INLINE void
 _set_entity_address_taken(ir_entity *ent, ir_address_taken_state state) {
        assert(ent && ent->kind == k_entity);
-       assert(ir_address_not_taken <= state && state <= ir_address_taken);
+       assert(state == ir_address_not_taken ||
+                       state == ir_address_taken_unknown ||
+                       state == ir_address_taken);
        ent->address_taken = state;
 }