summaryrefslogtreecommitdiffhomepage
path: root/ir/ident
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2012-02-19 16:55:12 +0100
committerMatthias Braun <matze@braunis.de>2012-02-19 16:55:12 +0100
commit6c2c42110431d16eab7ccaf14374da5776a473e6 (patch)
tree019abd7c57f0286cb14c922d1ec33f98ca23346c /ir/ident
parent5abcc4841bb185ed413379dacf8e00a2e379236b (diff)
ident: remove id_mangle_entity
the ident module shouldn't have name-mangling policies builtin.
Diffstat (limited to 'ir/ident')
-rw-r--r--ir/ident/mangle.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/ir/ident/mangle.c b/ir/ident/mangle.c
index fd2af1a..12a877c 100644
--- a/ir/ident/mangle.c
+++ b/ir/ident/mangle.c
@@ -45,25 +45,6 @@ static inline ident *mangle_type(const ir_type *tp)
return tp->name;
}
-ident *id_mangle_entity(const ir_entity *ent)
-{
- ident *type_id;
- char *cp;
- int len;
- ident *res;
-
- type_id = mangle_type(ent->owner);
- obstack_grow(&mangle_obst, get_id_str(type_id), get_id_strlen(type_id));
- obstack_1grow(&mangle_obst,'_');
- obstack_grow(&mangle_obst, get_id_str(ent->name), get_id_strlen(ent->name));
- len = obstack_object_size(&mangle_obst);
- cp = (char*)obstack_finish(&mangle_obst);
- res = new_id_from_chars(cp, len);
- obstack_free(&mangle_obst, cp);
- return res;
-}
-
-
/* Returns a new ident that represents 'firstscnd'. */
ident *id_mangle(ident *first, ident *scnd)
{