[llvm-commits] [poolalloc] r129506 - /poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp
Shaosu Liu
liu205 at illinois.edu
Wed Apr 13 21:38:03 PDT 2011
Author: liu205
Date: Wed Apr 13 23:38:03 2011
New Revision: 129506
URL: http://llvm.org/viewvc/llvm-project?rev=129506&view=rev
Log:
added pool allocfor pool_ functions including memchr, memccpy,strcspn, strspn, strcasecmp,strncascmp,strncmp,strcmp
Modified:
poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp
Modified: poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp?rev=129506&r1=129505&r2=129506&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp Wed Apr 13 23:38:03 2011
@@ -1568,6 +1568,7 @@
void PoolAllocate::InitializeCStdLibPoolArgs()
{
CStdLibPoolArgs.GetOrCreateValue("pool_strcpy", 2);
+ CStdLibPoolArgs.GetOrCreateValue("pool_strncpy", 2);
CStdLibPoolArgs.GetOrCreateValue("pool_strlen", 1);
CStdLibPoolArgs.GetOrCreateValue("pool_strchr", 1);
CStdLibPoolArgs.GetOrCreateValue("pool_strrchr", 1);
@@ -1575,6 +1576,16 @@
CStdLibPoolArgs.GetOrCreateValue("pool_strncat", 2);
CStdLibPoolArgs.GetOrCreateValue("pool_strstr", 2);
CStdLibPoolArgs.GetOrCreateValue("pool_strpbrk", 2);
+
+ CStdLibPoolArgs.GetOrCreateValue("pool_strcmp", 2);
+ CStdLibPoolArgs.GetOrCreateValue("pool_strncmp", 2);
+ CStdLibPoolArgs.GetOrCreateValue("pool_memcmp", 2);
+ CStdLibPoolArgs.GetOrCreateValue("pool_strcasecmp", 2);
+ CStdLibPoolArgs.GetOrCreateValue("pool_strncasecmp", 2);
+ CStdLibPoolArgs.GetOrCreateValue("pool_strspn", 2);
+ CStdLibPoolArgs.GetOrCreateValue("pool_strcspn", 2);
+ CStdLibPoolArgs.GetOrCreateValue("pool_memccpy", 2);
+ CStdLibPoolArgs.GetOrCreateValue("pool_memchr", 1);
//CStdLibPoolArgs.GetOrCreateValue("pool_strtok", 2);
//CStdLibPoolArgs.GetOrCreateValue("pool_strtok_r", 2);
//CStdLibPoolArgs.GetOrCreateValue("pool_strspn", 2);
More information about the llvm-commits
mailing list