From 0adf7d7484b224a166737a7093907cbaa5531caf Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 4 Jan 2015 18:54:44 +0000 Subject: cleanup --- symbols.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/symbols.c b/symbols.c index 96a0357..23cbafc 100644 --- a/symbols.c +++ b/symbols.c @@ -106,7 +106,6 @@ addSymbol(unsigned int address) void addCallTrace(unsigned int address) { - if (stackNumElems()) calls[lookupSymbol(stackTop())][lookupSymbol(address)]++; } @@ -137,10 +136,9 @@ emitSymbols(void) totals[from]++; } - if (totals[from]) - fprintf(fp, " %s [shape=rectangle]\n", functions[from].funcName); - else - fprintf(fp, " %s [shape=ellipse]\n", functions[from].funcName); + fprintf(fp, " %s [shape=%s]\n", + totals[from] ? "rectangle" : "ellipse", + functions[from].funcName); } /* Emit call graph */ -- cgit v1.2.3