1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

Add member template MallocAllocator::Allocate(Num) (to match the same function in BumpPtrAllocator).

llvm-svn: 62202
This commit is contained in:
Ted Kremenek 2009-01-14 00:38:21 +00:00
parent 2461d79aa9
commit da4930d361

View File

@ -31,6 +31,11 @@ public:
template <typename T>
T *Allocate() { return static_cast<T*>(malloc(sizeof(T))); }
template <typename T>
T *Allocate(size_t Num) {
return static_cast<T*>(malloc(sizeof(T)*Num));
}
void Deallocate(void *Ptr) { free(Ptr); }
void PrintStats() const {}