[llvm-commits] [llvm] r159834 - /llvm/trunk/include/llvm/Support/Allocator.h
Dmitri Gribenko
gribozavr at gmail.com
Fri Jul 6 09:42:25 PDT 2012
Author: gribozavr
Date: Fri Jul 6 11:42:25 2012
New Revision: 159834
URL: http://llvm.org/viewvc/llvm-project?rev=159834&view=rev
Log:
Revert r159789.
Modified:
llvm/trunk/include/llvm/Support/Allocator.h
Modified: llvm/trunk/include/llvm/Support/Allocator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Allocator.h?rev=159834&r1=159833&r2=159834&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Allocator.h (original)
+++ llvm/trunk/include/llvm/Support/Allocator.h Fri Jul 6 11:42:25 2012
@@ -239,21 +239,4 @@
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
More information about the llvm-commits
mailing list