[llvm-commits] CVS: poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp
John Criswell
criswell at cs.uiuc.edu
Tue Nov 11 14:44:01 PST 2003
Changes in directory poolalloc/runtime/FreeListAllocator:
PoolAllocator.cpp updated: 1.11 -> 1.12
---
Log message:
Moved from iostream to stdio output functions.
This removes dependencies on the C++ standard library.
---
Diffs of the changes: (+4 -4)
Index: poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp
diff -u poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp:1.11 poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp:1.12
--- poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp:1.11 Tue Nov 11 14:37:47 2003
+++ poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp Tue Nov 11 14:43:40 2003
@@ -17,7 +17,7 @@
#include "PoolSlab.h"
#include <assert.h>
#include <stdlib.h>
-#include <iostream>
+#include <stdio.h>
#undef assert
#define assert(X)
@@ -53,7 +53,7 @@
//
if (MaxNodesPerPage == 0)
{
- std::cerr << "Node size is too large" << std::endl;
+ fprintf (stderr, "Node size is too large\n");
abort();
}
@@ -65,7 +65,7 @@
NewSlab = (struct SlabHeader *) GetPages ((NodeSize * NodesPerSlab / PageSize) + 1);
if (NewSlab == NULL)
{
- std::cerr << "Failed large allocation" << std::endl;
+ fprintf (stderr, "Failed large allocation\n");
abort();
}
NewSlab->IsArray = 1;
@@ -75,7 +75,7 @@
NewSlab = (struct SlabHeader *) AllocatePage ();
if (NewSlab == NULL)
{
- std::cerr << "Failed regular allocation" << std::endl;
+ fprintf (stderr, "Failed regular allocation");
abort();
}
NewSlab->IsArray = 0;
More information about the llvm-commits
mailing list