72098a9158a469daa7954d20fe4bb0e5c4812490
[libfirm] / ir / tr / mangle.h
1 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
2 ** All rights reserved.
3 **
4 ** Authors: Martin Trapp, Christian Schaefer
5 **
6 */
7
8 /* $Id$ */
9
10 # include "ident.h"
11 # include "entity.h"
12 # include "type.h"
13
14
15 void init_mangle (void);
16
17 /* Computes a definite name for this entity by concatenating
18    the name of the owner type and the name of the entity with
19    a separating "_". f*/
20 ident *mangle_entity (entity *ent);
21
22 /* Sorry, I'm not sure what this does... seems to copy the string. */
23 ident *mangle_type   (type *type);
24
25 /* mangle underscore: Returns a new ident that represents first_scnd. */
26 ident *mangle_u (ident *first, ident* scnd);
27
28
29 /* mangle: Returns a new ident that represents firstscnd. */
30 ident *mangle (ident *first, ident* scnd);