Fix a bunch of -Wdocumentation warnings.
[oota-llvm.git] / include / llvm / Support / Allocator.h
index b080e222a108181426fce6eab25664491f97cf33..a2ad24ffead93bd995f50101e9c37063e30e9960 100644 (file)
@@ -23,6 +23,8 @@
 #include <cstddef>
 
 namespace llvm {
+template <typename T> struct ReferenceAdder { typedef T& result; };
+template <typename T> struct ReferenceAdder<T&> { typedef T result; };
 
 class MallocAllocator {
 public:
@@ -175,6 +177,9 @@ public:
   unsigned GetNumSlabs() const;
 
   void PrintStats() const;
+  
+  /// Compute the total physical memory allocated by this allocator.
+  size_t getTotalMemory() const;
 };
 
 /// SpecificBumpPtrAllocator - Same as BumpPtrAllocator but allows only