summaryrefslogtreecommitdiffhomepage
path: root/ir/ident
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-01-20 15:37:21 +0100
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-01-21 14:46:23 +0100
commitf92d093c53a67cadd790b94266e4a9747b0fd051 (patch)
treeb099096c528db68278b6b719af7b71fef89b995f /ir/ident
parent50992544f136eedb34c557c9433ea848836abb77 (diff)
Revert "ident: Remove the unused function id_mangle_dot()."
This reverts commit 7efc23744fd65b3a0e885cba55f33009fd2c4116. The function was used by the compiler lab reference compiler.
Diffstat (limited to 'ir/ident')
-rw-r--r--ir/ident/mangle.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ir/ident/mangle.c b/ir/ident/mangle.c
index 0c3eb3e..3dbb9cf 100644
--- a/ir/ident/mangle.c
+++ b/ir/ident/mangle.c
@@ -46,6 +46,12 @@ static ident *id_mangle_3(ident *first, char c, ident *scnd)
return new_ident_from_obst(&mangle_obst);
}
+/* Returns a new ident that represents first.scnd. */
+ident *id_mangle_dot(ident *first, ident *scnd)
+{
+ return id_mangle_3(first, '.', scnd);
+}
+
void firm_init_mangle(void)
{
obstack_init(&mangle_obst);