# include "config.h"
#endif
+#ifdef WITH_LIBCORE
+
#include "bitset.h"
#include <ctype.h>
return lc_arg_append(app, occ, buf, strlen(buf));
}
+/**
+ * Beware: do not set the entity ld_name
+ */
+static const char *get_entity_ld_name_ex(entity *ent) {
+ if (ent->ld_name)
+ return get_entity_ld_name(ent);
+ return get_entity_name(ent);
+}
+
/**
* emit a Firm object
*/
break;
case k_entity:
snprintf(buf, sizeof(buf), "%s%s", A("ent"),
- isupper(occ->conversion) ? get_entity_ld_name(X): get_entity_name(X));
+ isupper(occ->conversion) ? get_entity_ld_name_ex(X): get_entity_name(X));
snprintf(add, sizeof(add), "[%ld]", get_entity_nr(X));
break;
case k_type:
break;
case k_ir_compound_graph_path:
n = get_compound_graph_path_length(X);
- entity *ent;
for (i = 0; i < n; ++i) {
ent = get_compound_graph_path_node(X, i);
return env;
}
+
+#endif /* WITH_LIBCORE */