From 5d55d6917d08a14af7e5ed32420d07fcc15355ce Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 30 Jan 2006 09:17:03 +0000 Subject: [PATCH] more debug output [r7293] --- ir/tr/trvrfy.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ir/tr/trvrfy.c b/ir/tr/trvrfy.c index 47fd88d77..42359291f 100644 --- a/ir/tr/trvrfy.c +++ b/ir/tr/trvrfy.c @@ -308,6 +308,16 @@ static int constants_on_wrong_irg(entity *ent) { return 0; } +/** + * Shows a wrong entity allocation + */ +static void show_ent_alloc_error(entity *ent) +{ + ir_fprintf(stderr, "%+e owner %t has allocation %s\n", + ent, get_entity_type(ent), + get_allocation_name(get_entity_allocation(ent))); +} + /* * Check an entity. Currently, we check only if initialized constants * are build on the const irg graph. @@ -365,7 +375,7 @@ int check_entity(entity *ent) { get_entity_allocation(ent) != allocation_automatic, "Entities in global type are not allowed to by dynamic or automatic allocated", error_glob_ent_allocation, - ir_fprintf(stderr, "%+e\n", ent) + show_ent_alloc_error(ent) ); } -- 2.20.1