renamed get_peculiarity_string() to get_peculiarity_name()
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 31 May 2006 12:55:56 +0000 (12:55 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 31 May 2006 12:55:56 +0000 (12:55 +0000)
dumping now dumps the additional class flags

[r7835]

ir/tr/entity.c
ir/tr/entity.h
ir/tr/type.c
ir/tr/type.h

index 42e5424..ae8906d 100644 (file)
@@ -470,19 +470,6 @@ void
   _set_entity_peculiarity(ent, pec);
 }
 
-/* return the name of the peculiarity */
-const char *get_peculiarity_name(peculiarity var)
-{
-#define X(a)    case a: return #a
-  switch (var) {
-    X(peculiarity_description);
-    X(peculiarity_inherited);
-    X(peculiarity_existent);
-    default: return "BAD VALUE";
-  }
-#undef X
-}
-
 /* Get the entity's stickyness */
 ent_stickyness
 (get_entity_stickyness)(const entity *ent) {
index b9db476..8c07991 100644 (file)
@@ -328,9 +328,6 @@ peculiarity get_entity_peculiarity (const entity *ent);
 /** Sets the peculiarity of an entity. */
 void        set_entity_peculiarity (entity *ent, peculiarity pec);
 
-/** Return the name of the peculiarity. */
-const char *get_peculiarity_name(peculiarity var);
-
 /* -- Representation of constant values of entities -- */
 /** Returns true if the the node is representable as code on
  *  const_code_irg. */
index d0820ac..9c7f4eb 100644 (file)
@@ -955,7 +955,7 @@ void set_class_type_info(ir_type *clss, entity *ent) {
   clss->attr.ca.type_info = ent;
 }
 
-const char *get_peculiarity_string(peculiarity p) {
+const char *get_peculiarity_name(peculiarity p) {
 #define X(a)    case a: return #a
   switch (p) {
     X(peculiarity_description);
index aac9df8..7e05b31 100644 (file)
@@ -593,7 +593,7 @@ typedef enum peculiarity {
 } peculiarity;
 
 /** Returns a human readable string for a peculiarity. */
-const char *get_peculiarity_string(peculiarity p);
+const char *get_peculiarity_name(peculiarity p);
 
 /** Returns the peculiarity of the class. */
 peculiarity get_class_peculiarity (const ir_type *clss);