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:
parent
2461d79aa9
commit
da4930d361
@ -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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user