[llvm-commits] CVS: poolalloc/runtime/FreeListAllocator/PageManager.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 12 16:47:19 PST 2003


Changes in directory poolalloc/runtime/FreeListAllocator:

PageManager.cpp updated: 1.3 -> 1.4

---
Log message:

Updates for proper namespacification


---
Diffs of the changes:  (+2 -2)

Index: poolalloc/runtime/FreeListAllocator/PageManager.cpp
diff -u poolalloc/runtime/FreeListAllocator/PageManager.cpp:1.3 poolalloc/runtime/FreeListAllocator/PageManager.cpp:1.4
--- poolalloc/runtime/FreeListAllocator/PageManager.cpp:1.3	Tue Nov 11 14:13:42 2003
+++ poolalloc/runtime/FreeListAllocator/PageManager.cpp	Wed Nov 12 16:46:26 2003
@@ -29,7 +29,7 @@
 
 // Explicitly use the malloc allocator here, to avoid depending on the C++
 // runtime library.
-typedef std::vector<void*, MallocAllocator<void*> > FreePagesListType;
+typedef std::vector<void*, llvm::MallocAllocator<void*> > FreePagesListType;
 static FreePagesListType *FreePages = 0;
 
 //
@@ -100,7 +100,7 @@
     // Avoid using operator new!
     FreePages = (FreePagesListType*)malloc(sizeof(FreePagesListType));
     // Use placement new now.
-    new (FreePages) std::vector<void*, MallocAllocator<void*> >();
+    new (FreePages) std::vector<void*, llvm::MallocAllocator<void*> >();
   }
   for (unsigned i = 1; i != NumToAllocate; ++i)
     FreePages->push_back(Ptr+i*PageSize);





More information about the llvm-commits mailing list