Added test whether constants are on proper obstack
[libfirm] / ir / tr / trvrfy.h
1
2
3 #ifndef TRVRFY_H
4 #define TRVRFY_H
5
6 /**
7  * @file trvrfy.h
8  *
9  * Methods to verify the type representations.
10  *
11  * @author Goetz Lindenmaier
12  *
13  * Methods to verify the type representations.
14  * Copyright 2003 University of Karlsruhe.
15  * Created 29.1.2003.
16  *
17  * $Id$
18  */
19
20 #include "firm.h"
21
22 /**
23  * possible error codes
24  */
25 enum  trvrfy_error_codes {
26   no_error = 0,
27   error_ent_not_cont = 1,
28   error_null_mem,
29   error_const_on_wrong_obstack,
30 };
31
32
33 /**
34  * Walks the type information and performs a set of sanity checks.
35  *
36  * @return
37  *    0 if graph is correct
38  *    else error code.
39  */
40 int tr_vrfy(void);
41
42 #endif /* TRVRFY_H */