From: Argyrios Kyrtzidis Date: Mon, 3 Dec 2012 21:46:21 +0000 (+0000) Subject: Add a getMemorySize() function for DenseSet. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c114534ffb67f7bf80199f0ea39a075f7e86a12;p=platform%2Fupstream%2Fllvm.git Add a getMemorySize() function for DenseSet. llvm-svn: 169163 --- diff --git a/llvm/include/llvm/ADT/DenseSet.h b/llvm/include/llvm/ADT/DenseSet.h index 8ab9a33..776863a 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); }