X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Flibfirm%2Fident.h;h=5296f339eb278cca6f995f3f00706955fe8ff3ef;hb=f7a0dee11313faad6f2ff54edc8eaadabd03e433;hp=9b877b9125cc090d2009c9596a01b6a0e870e531;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/include/libfirm/ident.h b/include/libfirm/ident.h index 9b877b912..5296f339e 100644 --- a/include/libfirm/ident.h +++ b/include/libfirm/ident.h @@ -215,6 +215,12 @@ int id_is_suffix (ident *suffix, ident *id); */ int id_contains_char (ident *id, char c); +/** + * helper function for creating unique idents. It contains an internal counter + * and replaces a "%u" inside the tag with the counter. + */ +ident *id_unique(const char *tag); + #ifdef FIRM_ENABLE_WCHAR /** * Store a wide character string and create an ident. @@ -299,6 +305,9 @@ ident *mangle_dot (ident *first, ident* scnd); /** mangle: Returns a new ident that represents firstscnd. */ ident *mangle (ident *first, ident* scnd); +/** Returns a new ident that represents 'prefixscndsuffix'. */ +ident *mangle3 (const char *prefix, ident *middle, const char *suffix); + /** returns a mangled name for a Win32 function using it's calling convention */ ident *decorate_win32_c_fkt(ir_entity *ent, ident *id);