Move llvm/Support/MDBuilder.h to llvm/MDBuilder.h, to live with
[oota-llvm.git] / include / llvm / Support / Allocator.h
index c2dd75d48834a9fd2d92aae945f5480c0f06709e..a2ad24ffead93bd995f50101e9c37063e30e9960 100644 (file)
@@ -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