improvement in "stat"
authorClifford Wolf <clifford@clifford.at>
Sat, 24 Oct 2015 19:56:53 +0000 (21:56 +0200)
committerClifford Wolf <clifford@clifford.at>
Sat, 24 Oct 2015 19:56:53 +0000 (21:56 +0200)
passes/cmds/stat.cc

index 0aa76467f34f4eeacb00df52650fd1429a348976..ed4a040649d058522960b8753fbd819e2234956b 100644 (file)
@@ -223,7 +223,7 @@ struct StatPass : public Pass {
                        data.log_data();
                }
 
-               if (top_mod != NULL)
+               if (top_mod != NULL && GetSize(mod_stat) > 1)
                {
                        log("\n");
                        log("=== design hierarchy ===\n");