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 * File name: ir/tr/mangle.h
23 * Purpose: Methods to manipulate names.
24 * Author: Martin Trapp, Christian Schaefer
25 * Modified by: Goetz Lindenmaier
28 * Copyright: (c) 1998-2003 Universität Karlsruhe
34 * FIRM name mangling -- methods to manipulate names.
36 * @author Martin Trapp, Christian Schaefer
45 /** initializes the name mangling code */
46 void firm_init_mangle (void);
48 /** Computes a definite name for this entity by concatenating
49 the name of the owner type and the name of the entity with
51 ident *mangle_entity (ir_entity *ent);
53 /** mangle underscore: Returns a new ident that represents first_scnd. */
54 ident *mangle_u (ident *first, ident* scnd);
56 /** mangle dot: Returns a new ident that represents first.scnd. */
57 ident *mangle_dot (ident *first, ident* scnd);
59 /** mangle: Returns a new ident that represents firstscnd. */
60 ident *mangle (ident *first, ident* scnd);
62 /** returns a mangled name for a Win32 function using it's calling convention */
63 ident *decorate_win32_c_fkt(ir_entity *ent, ident *id);
65 #endif /* _MANGLE_H_ */