[llvm-commits] CVS: llvm/include/llvm/Support/MallocAllocator.h
John Criswell
criswell at cs.uiuc.edu
Thu Oct 28 10:32:03 PDT 2004
Changes in directory llvm/include/llvm/Support:
MallocAllocator.h updated: 1.8 -> 1.9
---
Log message:
Only add the _Alloc_traits specialization in if we're compiling for
Linux and not compiling for Sparc.
This is still probably not correct, or portable, but it'll do for now.
---
Diffs of the changes: (+2 -0)
Index: llvm/include/llvm/Support/MallocAllocator.h
diff -u llvm/include/llvm/Support/MallocAllocator.h:1.8 llvm/include/llvm/Support/MallocAllocator.h:1.9
--- llvm/include/llvm/Support/MallocAllocator.h:1.8 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/MallocAllocator.h Thu Oct 28 12:31:46 2004
@@ -72,6 +72,7 @@
}
} // End llvm namespace
+#if defined(__linux__) && !(defined (sparc) || defined (_sparc))
namespace std {
template<typename Type, typename Type2>
struct _Alloc_traits<Type, ::llvm::MallocAllocator<Type2> > {
@@ -81,5 +82,6 @@
typedef ::llvm::MallocAllocator<Type> allocator_type;
};
}
+#endif
#endif
More information about the llvm-commits
mailing list