summaryrefslogtreecommitdiffhomepage
path: root/ir/ident
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-01-20 15:29:38 +0100
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-01-21 14:46:23 +0100
commit50992544f136eedb34c557c9433ea848836abb77 (patch)
tree3272d6b01bd475001cf2277e99e26f7d6b6b1abf /ir/ident
parent6266879a4780a135baab6382c1a8a78b719ec9a6 (diff)
Revert "ident: Remove the unused function id_mangle_3()."
This reverts commit fb45ad91e9a3505118eadd869a5f679b36ff218d.
Diffstat (limited to 'ir/ident')
-rw-r--r--ir/ident/mangle.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ir/ident/mangle.c b/ir/ident/mangle.c
index c74220b..0c3eb3e 100644
--- a/ir/ident/mangle.c
+++ b/ir/ident/mangle.c
@@ -37,6 +37,15 @@ ident *id_mangle3(char const *const prefix, ident *const middle, char const *con
return new_ident_from_obst(&mangle_obst);
}
+/** Returns a new ident that represents first<c>scnd. */
+static ident *id_mangle_3(ident *first, char c, ident *scnd)
+{
+ grow_string(first);
+ obstack_1grow(&mangle_obst, c);
+ grow_string(scnd);
+ return new_ident_from_obst(&mangle_obst);
+}
+
void firm_init_mangle(void)
{
obstack_init(&mangle_obst);