[llvm-commits] CVS: poolalloc/lib/PoolAllocate/PoolAllocate.cpp PoolAllocate.h

Chris Lattner lattner at cs.uiuc.edu
Tue Nov 2 00:42:32 CST 2004



Changes in directory poolalloc/lib/PoolAllocate:

PoolAllocate.cpp updated: 1.77 -> 1.78
PoolAllocate.h updated: 1.25 -> 1.26

---
Log message:

Add poolrealloc prototype to the program


---
Diffs of the changes:  (+10 -5)

Index: poolalloc/lib/PoolAllocate/PoolAllocate.cpp
diff -u poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.77 poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.78
--- poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.77	Sun Oct 31 17:42:08 2004
+++ poolalloc/lib/PoolAllocate/PoolAllocate.cpp	Tue Nov  2 00:39:22 2004
@@ -157,20 +157,25 @@
 
   CurModule->addTypeName("PoolDescriptor", PoolDescType);
   
-  // Get poolinit function...
+  // Get poolinit function.
   PoolInit = CurModule->getOrInsertFunction("poolinit", Type::VoidTy,
                                             PoolDescPtrTy, Type::UIntTy, 0);
 
-  // Get pooldestroy function...
+  // Get pooldestroy function.
   PoolDestroy = CurModule->getOrInsertFunction("pooldestroy", Type::VoidTy,
                                                PoolDescPtrTy, 0);
   
-  // The poolalloc function
+  // The poolalloc function.
   PoolAlloc = CurModule->getOrInsertFunction("poolalloc", 
                                              VoidPtrTy, PoolDescPtrTy,
                                              Type::UIntTy, 0);
   
-  // Get the poolfree function...
+  // The poolrealloc function.
+  PoolRealloc = CurModule->getOrInsertFunction("poolrealloc",
+                                               VoidPtrTy, PoolDescPtrTy,
+                                               VoidPtrTy, Type::UIntTy, 0);
+
+  // Get the poolfree function.
   PoolFree = CurModule->getOrInsertFunction("poolfree", Type::VoidTy,
                                             PoolDescPtrTy, VoidPtrTy, 0);  
 }


Index: poolalloc/lib/PoolAllocate/PoolAllocate.h
diff -u poolalloc/lib/PoolAllocate/PoolAllocate.h:1.25 poolalloc/lib/PoolAllocate/PoolAllocate.h:1.26
--- poolalloc/lib/PoolAllocate/PoolAllocate.h:1.25	Sun Sep 19 23:35:24 2004
+++ poolalloc/lib/PoolAllocate/PoolAllocate.h	Tue Nov  2 00:39:22 2004
@@ -87,7 +87,7 @@
 
  public:
 
-  Function *PoolInit, *PoolDestroy, *PoolAlloc, *PoolAllocArray, *PoolFree;
+  Function *PoolInit, *PoolDestroy, *PoolAlloc, *PoolRealloc, *PoolFree;
   static const Type *PoolDescPtrTy;
 
   /// GlobalNodes - For each node (with an H marker) in the globals graph, this





More information about the llvm-commits mailing list