Index: src/IceGlobalContext.cpp |
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp |
index f3982554bdd9902c28c45a016022a7dfaae185b9..aa14e4b37bc742a80bf9ff901bbfc9a246781da0 100644 |
--- a/src/IceGlobalContext.cpp |
+++ b/src/IceGlobalContext.cpp |
@@ -376,6 +376,13 @@ ConstantList GlobalContext::getConstantPool(Type Ty) const { |
llvm_unreachable("Unknown type"); |
} |
+void GlobalContext::dumpStats(const IceString &Name) { |
+ if (Flags.DumpStats) { |
+ StatsFunction.dump(Name, getStrDump()); |
+ StatsCumulative.dump("_TOTAL_", getStrDump()); |
+ } |
+} |
+ |
void Timer::printElapsedUs(GlobalContext *Ctx, const IceString &Tag) const { |
if (Ctx->isVerbose(IceV_Timing)) { |
// Prefixing with '#' allows timing strings to be included |