X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Ftrvrfy.c;h=42359291f007b55a318b3d01e22fded52ebf2151;hb=d2dc2564b47d9c113d7e6e598574e9733627fcca;hp=47fd88d7719c158a9a14a360d1cf2cb87f7595ea;hpb=ff16a8159b6d3149a98c9dc0d49884e2324fcd87;p=libfirm 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) ); }