Fix faulty namespacification
authorChris Lattner <sabre@nondot.org>
Wed, 12 Nov 2003 22:45:14 +0000 (22:45 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Nov 2003 22:45:14 +0000 (22:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9943 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/MallocAllocator.h
include/llvm/Support/MallocAllocator.h

index 24f1a43c8d124f454777cbad50acb18f23715bee..022953df93dff113bb07ec967c2d33a3b088357d 100644 (file)
@@ -23,6 +23,8 @@
 #include <cstdlib>
 #include <memory>
 
+namespace llvm {
+
 template<typename T>
 struct MallocAllocator {
   typedef size_t size_type;
@@ -68,14 +70,15 @@ template<typename T>
 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;
   };
 }
 
index 24f1a43c8d124f454777cbad50acb18f23715bee..022953df93dff113bb07ec967c2d33a3b088357d 100644 (file)
@@ -23,6 +23,8 @@
 #include <cstdlib>
 #include <memory>
 
+namespace llvm {
+
 template<typename T>
 struct MallocAllocator {
   typedef size_t size_type;
@@ -68,14 +70,15 @@ template<typename T>
 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;
   };
 }