[llvm-commits] CVS: poolalloc/runtime/PoolAllocator/PageManager.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 12 16:47:02 PST 2003
Changes in directory poolalloc/runtime/PoolAllocator:
PageManager.cpp updated: 1.5 -> 1.6
---
Log message:
Updates for proper namespacification
---
Diffs of the changes: (+2 -2)
Index: poolalloc/runtime/PoolAllocator/PageManager.cpp
diff -u poolalloc/runtime/PoolAllocator/PageManager.cpp:1.5 poolalloc/runtime/PoolAllocator/PageManager.cpp:1.6
--- poolalloc/runtime/PoolAllocator/PageManager.cpp:1.5 Mon Nov 10 16:44:59 2003
+++ poolalloc/runtime/PoolAllocator/PageManager.cpp Wed Nov 12 16:46:28 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;
void InitializePageManager() {
@@ -86,7 +86,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