2 * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
4 * This file is part of libFirm.
6 * This file may be distributed and/or modified under the terms of the
7 * GNU General Public License version 2 as published by the Free Software
8 * Foundation and appearing in the file LICENSE.GPL included in the
9 * packaging of this file.
11 * Licensees holding valid libFirm Professional Edition licenses may use
12 * this file in accordance with the libFirm Commercial License.
13 * Agreement provided with the Software.
15 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * @brief Methods to manipulate names.
23 * @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck
26 #ifndef FIRM_TR_MANGLE_H
27 #define FIRM_TR_MANGLE_H
32 /** initializes the name mangling code */
33 void firm_init_mangle (void);
35 /** Computes a definite name for this entity by concatenating
36 the name of the owner type and the name of the entity with
38 ident *mangle_entity (ir_entity *ent);
40 /** mangle underscore: Returns a new ident that represents first_scnd. */
41 ident *mangle_u (ident *first, ident* scnd);
43 /** mangle dot: Returns a new ident that represents first.scnd. */
44 ident *mangle_dot (ident *first, ident* scnd);
46 /** mangle: Returns a new ident that represents firstscnd. */
47 ident *mangle (ident *first, ident* scnd);
49 /** returns a mangled name for a Win32 function using it's calling convention */
50 ident *decorate_win32_c_fkt(ir_entity *ent, ident *id);
52 #endif /* FIRM_TR_MANGLE_H */