projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a bunch of -Wdocumentation warnings.
[oota-llvm.git]
/
include
/
llvm
/
Support
/
Allocator.h
diff --git
a/include/llvm/Support/Allocator.h
b/include/llvm/Support/Allocator.h
index b080e222a108181426fce6eab25664491f97cf33..a2ad24ffead93bd995f50101e9c37063e30e9960 100644
(file)
--- a/
include/llvm/Support/Allocator.h
+++ b/
include/llvm/Support/Allocator.h
@@
-23,6
+23,8
@@
#include <cstddef>
namespace llvm {
#include <cstddef>
namespace llvm {
+template <typename T> struct ReferenceAdder { typedef T& result; };
+template <typename T> struct ReferenceAdder<T&> { typedef T result; };
class MallocAllocator {
public:
class MallocAllocator {
public:
@@
-175,6
+177,9
@@
public:
unsigned GetNumSlabs() const;
void PrintStats() const;
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
};
/// SpecificBumpPtrAllocator - Same as BumpPtrAllocator but allows only