diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-06 16:42:25 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-06 16:42:25 +0000 |
commit | d8a627b33bdd3dec806a2fe8c699c1e9896675c6 (patch) | |
tree | ebab53042ef8d64b5a6edf35babb069dad34174b /include/llvm/Support/Allocator.h | |
parent | a75ae7e8ae8af468fc19363b4c8c40c377c76ccd (diff) | |
download | llvm-d8a627b33bdd3dec806a2fe8c699c1e9896675c6.tar.gz llvm-d8a627b33bdd3dec806a2fe8c699c1e9896675c6.tar.bz2 llvm-d8a627b33bdd3dec806a2fe8c699c1e9896675c6.tar.xz |
Revert r159789.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Allocator.h')
-rw-r--r-- | include/llvm/Support/Allocator.h | 17 |
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 |