diff options
| -rw-r--r-- | clang/include/clang/AST/ASTContext.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index 63d6d0096b4..820c5a288d5 100644 --- a/clang/include/clang/AST/ASTContext.h +++ b/clang/include/clang/AST/ASTContext.h @@ -342,6 +342,12 @@ public: } void Deallocate(void *Ptr) const { } + /// Return the total amount of physical memory allocated for representing + /// AST nodes and type information. + size_t getTotalAllocatedMemory() const { + return BumpAlloc.getTotalMemory(); + } + PartialDiagnostic::StorageAllocator &getDiagAllocator() { return DiagAllocator; } |

