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:


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to