diff options
author | John Criswell <criswell@uiuc.edu> | 2004-10-28 18:21:41 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2004-10-28 18:21:41 +0000 |
commit | 9ba883c22f6203aae85a4edea3d69748181b5844 (patch) | |
tree | a4b2d0f2128dec0ec55c7f2d77a745fa8f65b688 /include/llvm/Support | |
parent | cd74271a790294198cdc101e3c08e5b063765220 (diff) | |
download | external_llvm-9ba883c22f6203aae85a4edea3d69748181b5844.zip external_llvm-9ba883c22f6203aae85a4edea3d69748181b5844.tar.gz external_llvm-9ba883c22f6203aae85a4edea3d69748181b5844.tar.bz2 |
Commented out the _Alloc_traits specialization entirely, as it is only
supported by specific versions of GCC.
It is left in place in case anyone wants to updated it for GCC 3.4 or
re-use it for earlier versions of GCC where it works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/MallocAllocator.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/Support/MallocAllocator.h b/include/llvm/Support/MallocAllocator.h index 18ec611..ae3dbac 100644 --- a/include/llvm/Support/MallocAllocator.h +++ b/include/llvm/Support/MallocAllocator.h @@ -72,7 +72,13 @@ inline bool operator!=(const MallocAllocator<T>&, const MallocAllocator<T>&) { } } // End llvm namespace -#if defined(__linux__) && !(defined (sparc) || defined (_sparc)) +/* + * This specialization was used for optimization earlier, but doesn't appear + * to work with newer versions of GCC, Linux or otherwise. + * + * This can be re-enabled if desired, but by default, it won't be included. + */ +#if 0 namespace std { template<typename Type, typename Type2> struct _Alloc_traits<Type, ::llvm::MallocAllocator<Type2> > { |