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.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h
index c2dd75d488..a2ad24ffea 100644
--- a/include/llvm/Support/Allocator.h
+++ b/include/llvm/Support/Allocator.h
@@ -239,21 +239,4 @@ inline void *operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) {
inline void operator delete(void *, llvm::BumpPtrAllocator &) {}
-inline void *operator new[](size_t Size, llvm::BumpPtrAllocator &Allocator) {
- struct S {
- char c;
- union {
- double D;
- long double LD;
- long long L;
- void *P;
- } x;
- };
- return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size),
- offsetof(S, x)));
-}
-
-inline void operator delete[](void *Ptr, llvm::BumpPtrAllocator &C, size_t) {
-}
-
#endif // LLVM_SUPPORT_ALLOCATOR_H