[llvm-commits] [poolalloc] r47132 - /poolalloc/trunk/include/poolalloc/PoolAllocate.h

John Criswell criswell at uiuc.edu
Thu Feb 14 12:23:38 PST 2008


Author: criswell
Date: Thu Feb 14 14:23:37 2008
New Revision: 47132

URL: http://llvm.org/viewvc/llvm-project?rev=47132&view=rev
Log:
Change the getPoolType() method to switch between different pool sizes
depending upon whether we're compiling for use with SAFECode.

Modified:
    poolalloc/trunk/include/poolalloc/PoolAllocate.h

Modified: poolalloc/trunk/include/poolalloc/PoolAllocate.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/poolalloc/PoolAllocate.h?rev=47132&r1=47131&r2=47132&view=diff

==============================================================================
--- poolalloc/trunk/include/poolalloc/PoolAllocate.h (original)
+++ poolalloc/trunk/include/poolalloc/PoolAllocate.h Thu Feb 14 14:23:37 2008
@@ -208,7 +208,11 @@
   /// getPoolType - Return the type of a pool descriptor
   const Type * getPoolType() {
     Type * VoidPtrType = PointerType::getUnqual(Type::Int8Ty);
+#ifdef SAFECODE
+    return ArrayType::get(VoidPtrType, 50);
+#else
     return ArrayType::get(VoidPtrType, 16);
+#endif
   }
 
  private:





More information about the llvm-commits mailing list