[llvm-commits] CVS: llvm-poolalloc/runtime/PtrCompAllocator/Makefile PtrCompAllocator.h

Chris Lattner lattner at cs.uiuc.edu
Tue Mar 1 14:42:20 PST 2005



Changes in directory llvm-poolalloc/runtime/PtrCompAllocator:

Makefile updated: 1.1 -> 1.2
PtrCompAllocator.h updated: 1.2 -> 1.3
---
Log message:

add comments, cleanup cruft in the makefile that doesn't do anything.  We don't
need a bc version


---
Diffs of the changes:  (+7 -6)

 Makefile           |    3 ---
 PtrCompAllocator.h |   10 +++++++---
 2 files changed, 7 insertions(+), 6 deletions(-)


Index: llvm-poolalloc/runtime/PtrCompAllocator/Makefile
diff -u llvm-poolalloc/runtime/PtrCompAllocator/Makefile:1.1 llvm-poolalloc/runtime/PtrCompAllocator/Makefile:1.2
--- llvm-poolalloc/runtime/PtrCompAllocator/Makefile:1.1	Tue Feb 22 13:35:07 2005
+++ llvm-poolalloc/runtime/PtrCompAllocator/Makefile	Tue Mar  1 16:42:05 2005
@@ -1,5 +1,4 @@
 LEVEL = ../..
-BYTECODE_LIBRARY=1
 SHARED_LIBRARY=1
 LIBRARYNAME=ptrcomp_rt
 
@@ -7,5 +6,3 @@
 
 include $(LEVEL)/Makefile.common
 
-# Always build optimized and debug versions
-all:: $(LIBNAME_OBJO) $(LIBNAME_OBJG)


Index: llvm-poolalloc/runtime/PtrCompAllocator/PtrCompAllocator.h
diff -u llvm-poolalloc/runtime/PtrCompAllocator/PtrCompAllocator.h:1.2 llvm-poolalloc/runtime/PtrCompAllocator/PtrCompAllocator.h:1.3
--- llvm-poolalloc/runtime/PtrCompAllocator/PtrCompAllocator.h:1.2	Tue Feb 22 14:11:26 2005
+++ llvm-poolalloc/runtime/PtrCompAllocator/PtrCompAllocator.h	Tue Mar  1 16:42:05 2005
@@ -16,8 +16,12 @@
 #define PTRCOMP_ALLOCATOR_H
 
 struct PoolTy {
-  char *PoolBase;   // The actual pool.
-  unsigned long *BitVector;// Bitvector of bits.  This stores two bits per node.
+  // PoolBase - The actual pool.  Note that this MUST stay as the first element
+  // of this structure.
+  char *PoolBase;
+
+  // BitVector - Bitvector of bits.  This stores two bits per node.
+  unsigned long *BitVector;
 
   // OrigSize - The size of the nodes in a non-compressed pool.
   unsigned OrigSize;
@@ -35,7 +39,7 @@
   unsigned long NumUsed;
 
 
-  // These fields are only used in debug mode.
+  // These fields are only used in debug mode to build stats, keep at end.
   unsigned BytesAllocated, NumObjects;
 };
 






More information about the llvm-commits mailing list