_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) {
/** 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. */
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);
} 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);