Index: src/IceDefs.h |
diff --git a/src/IceDefs.h b/src/IceDefs.h |
index f5147c668c5afc86c99dfc8e8f576567a807db8f..e1a278e10f0b49a800f7d6f87e6eac3bd144cb8d 100644 |
--- a/src/IceDefs.h |
+++ b/src/IceDefs.h |
@@ -61,6 +61,10 @@ class VariablesMetadata; |
typedef llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 1024 * 1024> |
ArenaAllocator; |
+template <size_t SlabSize> |
Jim Stichnoth
2015/01/09 22:30:35
I was wondering if you could just parameterize Are
jvoung (off chromium)
2015/01/09 22:50:19
Ah yep, that seems to work. Done.
|
+using SizedArenaAllocator = |
+ llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, SlabSize>; |
+ |
ArenaAllocator *getCurrentCfgAllocator(); |
template <typename T> struct CfgLocalAllocator { |