Commented out the _Alloc_traits specialization entirely, as it is only
authorJohn Criswell <criswell@uiuc.edu>
Thu, 28 Oct 2004 18:21:41 +0000 (18:21 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Thu, 28 Oct 2004 18:21:41 +0000 (18:21 +0000)
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

include/llvm/Support/MallocAllocator.h

index 18ec611e1f7d69a9edfe3d793b6598646b3ef3b4..ae3dbace05ae19ee33ea1e1463fab7586b448cc1 100644 (file)
@@ -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> > {