summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/Allocator.h')
-rw-r--r--include/llvm/Support/Allocator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h
index 527d4c6e2c..f23a41f17f 100644
--- a/include/llvm/Support/Allocator.h
+++ b/include/llvm/Support/Allocator.h
@@ -23,6 +23,7 @@ public:
MallocAllocator() {}
~MallocAllocator() {}
+ void Reset() {}
void *Allocate(unsigned Size, unsigned Alignment) { return malloc(Size); }
void Deallocate(void *Ptr) { free(Ptr); }
void PrintStats() const {}
@@ -38,6 +39,7 @@ public:
BumpPtrAllocator();
~BumpPtrAllocator();
+ void Reset();
void *Allocate(unsigned Size, unsigned Alignment);
void Deallocate(void *Ptr) {}
void PrintStats() const;