From 8c114534ffb67f7bf80199f0ea39a075f7e86a12 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Mon, 3 Dec 2012 21:46:21 +0000 Subject: [PATCH] Add a getMemorySize() function for DenseSet. llvm-svn: 169163 --- llvm/include/llvm/ADT/DenseSet.h | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/include/llvm/ADT/DenseSet.h b/llvm/include/llvm/ADT/DenseSet.h index 8ab9a33200c3..776863a4c0ae 100644 --- a/llvm/include/llvm/ADT/DenseSet.h +++ b/llvm/include/llvm/ADT/DenseSet.h @@ -32,6 +32,7 @@ public: bool empty() const { return TheMap.empty(); } unsigned size() const { return TheMap.size(); } + size_t getMemorySize() const { return TheMap.getMemorySize(); } /// Grow the denseset so that it has at least Size buckets. Does not shrink void resize(size_t Size) { TheMap.resize(Size); }