X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Fmangle.c;h=5adb6661acc3f9830da687dd77ddf28d9f8ae3f6;hb=1312195fd166a8ace88a3ea9671dbb7dfc11b39e;hp=26987d84b3f829b055079ce8bc4e2353e6d7f836;hpb=a973f767f5995ec8ac72d662fb982dfb8594bf5c;p=libfirm diff --git a/ir/tr/mangle.c b/ir/tr/mangle.c index 26987d84b..5adb6661a 100644 --- a/ir/tr/mangle.c +++ b/ir/tr/mangle.c @@ -1,11 +1,16 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Martin Trapp, Christian Schaefer -* -*/ +/* + * Project: libFIRM + * File name: ir/tr/mangle.c + * Purpose: Methods to manipulate names. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + -/* $Id$ */ #ifdef HAVE_CONFIG_H # include @@ -13,7 +18,6 @@ # include "mangle.h" # include "obst.h" -# include "misc.h" /* Make types visible to allow most efficient access */ # include "entity_t.h" @@ -22,6 +26,13 @@ static struct obstack mangle_obst; +static INLINE ident * +mangle_type (type *tp) +{ + assert (tp->kind == k_type); + return tp->name; +} + ident * mangle_entity (entity *ent) { @@ -41,12 +52,6 @@ mangle_entity (entity *ent) return res; } -ident * -mangle_type (type *tp) -{ - assert (tp->kind == k_type); - return tp->name; -} /* Returns a new ident that represents firstscnd. */ ident *mangle (ident *first, ident* scnd) {