new SymConst semantics
[libfirm] / ir / tr / type_or_entity.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/tr/type_or_entity.h
4  * Purpose:     Provides a datatype to treat types and entities as the same.
5  * Author:      Goetz Lindenmaier
6  * Modified by:
7  * Created:
8  * CVS-ID:      $Id$
9  * Copyright:   (c) 1999-2003 Universität Karlsruhe
10  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11  */
12
13 /**
14  * @file type_or_entity.h
15  *
16  * Provides a datatype to treat types and entities as the same.
17  *
18  * @author Goetz Lindenmaier
19  */
20
21 # ifndef _TYPE_OR_ENTITY_H_
22 # define _TYPE_OR_ENTITY_H_
23
24 /** A datatype to treat types and entities as the same. */
25 typedef union {
26   struct type   *typ;     /**< points to a type */
27   struct entity *ent;     /**< points to an entity */
28 } type_or_ent;
29
30
31 # endif /* _TYPE_OR_ENTITY_H_ */