X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbenode.c;h=69d181e4c3cd78e8fbbdcc8bb0abe1bad367efb0;hb=fab9d54761da78349581639c7659acb012b0c50d;hp=a60e01a18c79f084f29734f082fff5ff4550e9dc;hpb=f804d333c7b5459c3c1a6bfc188ecdc54346be73;p=libfirm diff --git a/ir/be/benode.c b/ir/be/benode.c index a60e01a18..69d181e4c 100644 --- a/ir/be/benode.c +++ b/ir/be/benode.c @@ -548,9 +548,15 @@ static int dump_node(ir_node *irn, FILE *f, dump_reason_t reason) if(get_irn_be_opcode(irn) == beo_Spill) { be_spill_attr_t *a = (be_spill_attr_t *) at; - unsigned ofs = get_entity_offset_bytes(a->ent); + ir_fprintf(f, "spill context: %+F\n", a->spill_ctx); - ir_fprintf(f, "spill entity: %+F offset %x (%d)\n", a->ent, ofs, ofs); + if (a->ent) { + unsigned ofs = get_entity_offset_bytes(a->ent); + ir_fprintf(f, "spill entity: %+F offset %x (%d)\n", a->ent, ofs, ofs); + } + else { + ir_fprintf(f, "spill entity: n/a\n"); + } } break; }