Provide operator delete for BumpPtrAllocator and RecyclingAllocator. They will

never be called but msvc complains that they're missing.

llvm-svn: 100766
This commit is contained in:
Benjamin Kramer 2010-04-08 15:22:35 +00:00
parent 79979079e9
commit 63b5d569d1
2 changed files with 9 additions and 0 deletions

View File

@ -236,4 +236,6 @@ inline void *operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) {
offsetof(S, x)));
}
inline void operator delete(void *, llvm::BumpPtrAllocator &) {}
#endif // LLVM_SUPPORT_ALLOCATOR_H

View File

@ -63,4 +63,11 @@ inline void *operator new(size_t,
return Allocator.Allocate();
}
template<class AllocatorType, class T, size_t Size, size_t Align>
inline void operator delete(void *E,
llvm::RecyclingAllocator<AllocatorType,
T, Size, Align> &A) {
A.Deallocate(E);
}
#endif