removed c_name field
[libfirm] / ir / tr / entity_t.h
index 5343c4a..64d3684 100644 (file)
@@ -43,6 +43,7 @@
 # include "entity.h"
 # include "typegmod.h"
 # include "mangle.h"
+# include "pseudo_irg.h"
 
 
 /** A path in a compund graph. */
@@ -109,7 +110,6 @@ struct entity {
 
   /* ------------- fields for analyses ---------------*/
 
-  ir_node **accesses;                      /**< accessing nodes: loads, stores. */
 
 #ifdef DEBUG_libfirm
   int nr;             /**< a unique node number for each node to make output
@@ -118,6 +118,8 @@ struct entity {
 # endif /* DEBUG_libfirm */
 };
 
+
+
 /* ----------------------- inline functions ------------------------ */
 static INLINE int
 __is_entity(const void *thing) {
@@ -225,6 +227,7 @@ __set_entity_peculiarity(entity *ent, peculiarity pec) {
   assert(ent && ent->kind == k_entity);
   /* @@@ why peculiarity only for methods? */
   assert(is_method_type(ent->type));
+
   ent->peculiarity = pec;
 }
 
@@ -281,7 +284,9 @@ __set_entity_link(entity *ent, void *l) {
 static INLINE ir_graph *
 __get_entity_irg(const entity *ent) {
   assert(ent && ent->kind == k_entity);
-  assert(is_method_type(ent->type));
+  assert(ent == unknown_entity || is_method_type(ent->type));
+  if (!get_visit_pseudo_irgs() && ent->irg && is_pseudo_ir_graph(ent->irg))
+    return NULL;
   return ent->irg;
 }