[llvm-commits] CVS: llvm/include/Support/MallocAllocator.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 12 16:46:02 PST 2003
Changes in directory llvm/include/Support:
MallocAllocator.h updated: 1.5 -> 1.6
---
Log message:
Fix faulty namespacification
---
Diffs of the changes: (+7 -4)
Index: llvm/include/Support/MallocAllocator.h
diff -u llvm/include/Support/MallocAllocator.h:1.5 llvm/include/Support/MallocAllocator.h:1.6
--- llvm/include/Support/MallocAllocator.h:1.5 Wed Nov 12 15:32:06 2003
+++ llvm/include/Support/MallocAllocator.h Wed Nov 12 16:45:14 2003
@@ -23,6 +23,8 @@
#include <cstdlib>
#include <memory>
+namespace llvm {
+
template<typename T>
struct MallocAllocator {
typedef size_t size_type;
@@ -68,14 +70,15 @@
inline bool operator!=(const MallocAllocator<T>&, const MallocAllocator<T>&) {
return false;
}
+} // End llvm namespace
namespace std {
template<typename Type, typename Type2>
- struct _Alloc_traits<Type, ::MallocAllocator<Type2> > {
+ struct _Alloc_traits<Type, ::llvm::MallocAllocator<Type2> > {
static const bool _S_instanceless = true;
- typedef ::MallocAllocator<Type> base_alloc_type;
- typedef ::MallocAllocator<Type> _Alloc_type;
- typedef ::MallocAllocator<Type> allocator_type;
+ typedef ::llvm::MallocAllocator<Type> base_alloc_type;
+ typedef ::llvm::MallocAllocator<Type> _Alloc_type;
+ typedef ::llvm::MallocAllocator<Type> allocator_type;
};
}
More information about the llvm-commits
mailing list