Index: src/IceCfg.h |
diff --git a/src/IceCfg.h b/src/IceCfg.h |
index 64a454cdd8056449ae98bf9146c86ec447ef78c7..8cfe4748558a7e3c67cc1c5047d57f40cf574dfd 100644 |
--- a/src/IceCfg.h |
+++ b/src/IceCfg.h |
@@ -219,6 +219,10 @@ public: |
const CfgNode *getCurrentNode() const { return CurrentNode; } |
/// @} |
+ /// Get the total amount of memory held by the per-Cfg allocator. This is |
+ /// mostly meant for use inside a debugger. |
+ static size_t getTotalMemoryMB(); |
+ |
void emit(); |
void emitIAS(); |
static void emitTextHeader(const IceString &MangledName, GlobalContext *Ctx, |