Commit f92d093c authored by yb9976's avatar yb9976
Browse files

Revert "ident: Remove the unused function id_mangle_dot()."

This reverts commit 7efc2374.

The function was used by the compiler lab reference compiler.
parent 50992544
......@@ -61,6 +61,9 @@ FIRM_API const char *get_id_str(ident *id);
*/
FIRM_API ident *id_unique(const char *tag);
/** mangle dot: Returns a new ident that represents first.scnd. */
FIRM_API ident *id_mangle_dot(ident *first, ident* scnd);
/** Returns a new ident that represents 'prefixscndsuffix'. */
FIRM_API ident *id_mangle3(const char *prefix, ident *middle,
const char *suffix);
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment