* @brief Check types and entities for correctness.
* @date 29.1.2003
* @author Michael Beck, Goetz Lindenmaier
- * @version $Id$
*/
#include "config.h"
#include "irgwalk.h"
#include "error.h"
#include "tv.h"
+#include "ircons.h"
#ifdef NDEBUG
/*
return 0;
}
-
-/*
- * Checks a type.
- *
- * return
- * 0 if no error encountered
- */
int check_type(ir_type *tp)
{
switch (get_type_tpop_code(tp)) {
return 0;
}
-/*
- * Check an entity. Currently, we check only if initialized constants
- * are build on the const irg graph.
- *
- * @return
- * 0 if no error encountered
- * != 0 a trverify_error_codes code
- */
int check_entity(ir_entity *ent)
{
ir_type *tp = get_entity_type(ent);
}
}
-/*
- * Verify types and entities.
- */
int tr_verify(void)
{
static ident *empty = NULL;