X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Fident.h;h=5296f339eb278cca6f995f3f00706955fe8ff3ef;hb=9ec98298a0bf99ccb9533365dd7245e0a380f3df;hp=9015ddfc222de98991b90d673fc2145a87391c28;hpb=1ec30d95387eb392ba5a1adc7958ebd91383d59c;p=libfirm diff --git a/include/libfirm/ident.h b/include/libfirm/ident.h index 9015ddfc2..5296f339e 100644 --- a/include/libfirm/ident.h +++ b/include/libfirm/ident.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -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);