Index: src/IceGlobalContext.cpp |
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp |
index 47c7aa89a9db869cf31e92a1a38115338005be82..319e18a9d6a3c6ecac74d7bc3454b44eed6bbaad 100644 |
--- a/src/IceGlobalContext.cpp |
+++ b/src/IceGlobalContext.cpp |
@@ -384,10 +384,14 @@ ConstantList GlobalContext::getConstantPool(Type Ty) const { |
llvm_unreachable("Unknown type"); |
} |
-void GlobalContext::dumpStats(const IceString &Name) { |
+void GlobalContext::dumpStats(const IceString &Name, bool Final) { |
if (Flags.DumpStats) { |
- StatsFunction.dump(Name, getStrDump()); |
- StatsCumulative.dump("_TOTAL_", getStrDump()); |
+ if (Final) { |
+ StatsCumulative.dump(Name, getStrDump()); |
+ } else { |
+ StatsFunction.dump(Name, getStrDump()); |
+ StatsCumulative.dump("_TOTAL_", getStrDump()); |
+ } |
} |
} |