From 24e977473f980cc95d5699e9ee6f8e75ac87c528 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 3 Sep 2011 16:31:45 +0200 Subject: [PATCH] Print "default" instead of nothing if an entity has default linkage. --- ir/ir/irdumptxt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ir/ir/irdumptxt.c b/ir/ir/irdumptxt.c index d5672811e..b30bb8ea1 100644 --- a/ir/ir/irdumptxt.c +++ b/ir/ir/irdumptxt.c @@ -453,6 +453,10 @@ static void dump_entity_linkage(FILE *F, const ir_entity *entity) { ir_linkage linkage = get_entity_linkage(entity); + if (linkage == IR_LINKAGE_DEFAULT) { + fprintf(F, " default"); + return; + } if (linkage & IR_LINKAGE_CONSTANT) fprintf(F, " constant"); if (linkage & IR_LINKAGE_WEAK) -- 2.20.1